分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 代码编程

ASP.NET Web配置使用HTTPS实用案例

发布时间:2023-09-06 02:02责任编辑:彭小芳关键词:.NETWeb配置

Step by Step 配置使用HTTPS的ASP.NET Web应用

有关HTTPS、SSL以及SSL证书的工作原理,参见

《HTTPS那些事(一)HTTPS原理》

《HTTPS那些事(二)SSL证书》

《HTTPS那些事(三)攻击实例与防御》

本文将演示如何在IIS中配置一个HTTPS的ASP.NET Web Application。

(1)打开Internet Information Services (IIS) Manager

(2)创建一个Self-Signed Certificate

A self-signed certificate is an identity certificate that is signed by its own creator. Certificates are signed by Certificate Authority. In general self signed certificates are fine for testing purpose but not for production.

创建self-signed certificate有两种方式:

  • 使用IIS
  • 使用Visual Studio的工具MakeCert.exe

本文只演示如何用IIS创建self-signed certificate。

打开IIS Manager后,双击Server Certificates。

(3)在IIS中添加一个Website

 Binding下Type选择https,默认端口为443(http默认端口为80),SSL Certificate选择上面我们创建的self-signed certificate。

(4)也可以用添加Site Binding的方式实现

点击Add

(5)打开浏览器

点击地址栏旁边的小锁头,查看一下证书

(6)打开证书管理工具,查看Trusted Root Certification Authorities

可以看到在IIS中创建self-signed certificate的时候,服务器已经将它添加到Trusted Root CA中了。在客户端,你需要手动安装根证书。

(7)证书颁发机构

如果想使用浏览器信任的证书,需要使用证书颁发机构 (CA)颁发给你的证书,比如Verisign,Thawte等。Self-signed Certificate可以用于开发测试环境,不应用于生产环境。

 原文链接:http://www.cnblogs.com/jfzhu/p/4064654.html

ASP.NET Web配置使用HTTPS实用案例

原文地址:https://www.cnblogs.com/1175429393wljblog/p/9267727.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved