How to configure a Web Application to use SSL on IIS
Posted on by Cosmin Vana
Create a self-signed certificate
In order to use SSL you need to buy a certificate. If you want to use SSL on a developer machine you can create and use a self-signed certificate. To create a self-signed certificate, use the following steps:
-
Open IIS Manager
-
Go to the root directory and double click on Server Certificates
-
In Actions pane (right), click then "Create Self Signed Certificate"
-
Give a friendly name to the certificate and click "OK"
Enable HTTPS on your application
Now you need to enable HTTPS protocol for your web application and use the certificate that you have created. Follow the next steps:
-
Go to Default Web Site (or your site) website and click "Advanced Settings"
-
In Advanced Settings dialog, add the following text in "Enabled Protocols": http, https
-
Click OK
-
In Actions pane click on "Bindings", then click "Add…"
-
Add https type and select the appropriate certificate, then click OK
-
Go to Advanced Settings for your website under "Default Web Site" and click Advanced Settings add the following text in "Enabled Protocols": http, https
Your application is now ready to be used with HTTPS.