在visual studio中調試本地SSL網站(https)

來源:互聯網
上載者:User

原文見: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 would
    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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.