原創地址:http://www.cnblogs.com/jfzhu/p/4064654.html html
轉載請註明出處瀏覽器
有關HTTPS、SSL以及SSL證書的工做原理,參見服務器
本文將演示如何在IIS中配置一個HTTPS的ASP.NET Web Application。測試
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.orm
建立self-signed certificate有兩種方式:htm
本文只演示如何用IIS建立self-signed certificate。blog
打開IIS Manager後,雙擊Server Certificates。
Binding下Type選擇https,默認端口爲443(http默認端口爲80),SSL Certificate選擇上面咱們建立的self-signed certificate。
點擊Add
點擊地址欄旁邊的小鎖頭,查看一下證書
能夠看到在IIS中建立self-signed certificate的時候,服務器已經將它添加到Trusted Root CA中了。在客戶端,你須要手動安裝根證書。
若是想使用瀏覽器信任的證書,須要使用證書頒發機構 (CA)頒發給你的證書,好比Verisign,Thawte等。Self-signed Certificate能夠用於開發測試環境,不該用於生產環境。