博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在visual studio中调试本地SSL站点(https)
阅读量:7136 次
发布时间:2019-06-28

本文共 1755 字,大约阅读时间需要 5 分钟。

原文见:,介绍得非常详细了

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

转载于:https://www.cnblogs.com/walkerwang/archive/2012/08/06/2625655.html

你可能感兴趣的文章
映射(map)
查看>>
【转载】nodejs+express+ejs+mongoose实例
查看>>
IOS SDWebImage 支持webp
查看>>
国内不谈java
查看>>
比较Maven和Ant
查看>>
poj 3468 A Simple Problem with Integers(线段树+区间更新+区间求和)
查看>>
dup和dup2函数
查看>>
Js的原型和原型链理解
查看>>
未知题目
查看>>
在C#中??和?分别是什么意思?
查看>>
APP 开发,代码写的真烂
查看>>
适合0基础的web开发系列教程-html5新的表单元素
查看>>
Python 常用算法记录
查看>>
OC中的野指针(僵尸指针)
查看>>
SSM环境的搭建
查看>>
leetcode 196. Delete Duplicate Emails
查看>>
聚美第六天
查看>>
Q:java中的泛型数组
查看>>
[Android] adb 命令 dumpsys activity , 用来看 task 中的activity。 (uninstall virus)
查看>>
数据分析学习笔记(三)-NetworkX的使用
查看>>