zoukankan      html  css  js  c++  java
  • 在visual studio中调试本地SSL站点(https)

    原文见: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

    Picture of IIS Manager

        d. Click on Create Self-Signed Certificate

    Screenshot of Server Certificates

        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”

    Screenshot of Web Site Bindings

        e. Choose https for Type and choose the SSL certificate you created in the SSL certificate dropdown, then click “OK”

    Screenshot of Add Web Site Binding

    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”

    Screenshot of Property pages

    6. Debug
        a. Start debugging your application like you normally would
        b. A warning page displays like below

    Screenshot of Warning Page

        c. Choose “Continue to this website (not recommended).” and you will now be able to debug through your SSL Web Site

  • 相关阅读:
    删除文件时,提示 "操作无法完成..." 怎么处理
    对象的理解
    TP5架构下链接SQL数据库的一种方法
    关于URL隐藏index.php方法
    非典型的千万用户后台之路
    就这样,再见2015
    理想的程序员
    4个小例子告诉你:如何成为一名数据极客
    馆中窥职:小公司没那么糟糕
    JAVA设计模式详解(六)----------状态模式
  • 原文地址:https://www.cnblogs.com/walkerwang/p/2625655.html
Copyright © 2011-2022 走看看