Debug the local SSL site (https) in Visual Studio)

Source: Internet
Author: User
Tags ssl certificate

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.