For more information, see http://www.sql-programmers.com/debugging-ssl-website-visualstudio2010.aspx.
1. Create your web site in IIS
A. Open IIS
B. Right click on web sites folder
C. Choose "Add web site"
D. Enter the details of your web site
2. Set up a self-signed certificate in iis7
A. Open IIS
B. Click on the Root machine node in the left pane
C. Double Click "server certificates" in the middle page
D. Click on create self-signed certificate
E. Enter a name to use for the certificate and hit "OK". iis7 automatically creates a new self-signed certificate and registers it on the machine.
3. Enable hhtps Bindings for the web site
A. Open IIS
B. Click on your web site in the left hand pane
C. Click on "bindings ..." In the right hand pane. This will bring up a dialog with a list of binding rules that directs traffic to the web site.
D. Add a new binding by clicking "Add"
E. Choose https for type and choose the SSL certificate you created in the SSL Certificate dropdown, then click "OK"
4. Verify the SSL security on website
A. Open IIS
B. Click on the web site in the left hand pane
C. Click SSL settings in the middle pane
D. Verify that client certificates is set to ignore
5. Change your web site properties
A. Right click on your project name and choose "property pages"
B. Change the start action to "start URL:" radio button and fill in the path to your application using https: // localhost /...
C. Change the server setting to "use customer server" radio button and enter the base URL of your site http: // localhost /...
D. Click "OK"
6. Debug
A. Start debugging your application like you normally wowould
B. A warning page displays like below
C. Choose "continue to this website (not recommended)." And you will now be able to debug through your SSL Web Site