iis7配置https

證書轉換網站
https://www.sslshopper.com/ssl-converter.htmlhtml

 

IIS7環境下win導入證書web

以前分享過在Linux 服務器下開啓 https 的方法,而此次是 IIS,因此也簡單分享一下。服務器

①、添加證書管理app

IIS 服務器->開始->運行->輸入 MMC->肯定後彈出以下界面->點擊文件->選擇添加/刪除管理單元:tcp

分享一個SSL證書在線轉換工具,以及IIS7環境下開通https的方法

②、下拉左邊列表,找到證書並添加:工具

分享一個SSL證書在線轉換工具,以及IIS7環境下開通https的方法

③、選擇計算機帳戶:網站

分享一個SSL證書在線轉換工具,以及IIS7環境下開通https的方法

④、跟着嚮導繼續下一步並完成後,剛剛的 MMC 控制界面就能夠看到【證書】選項了,如圖點開我的選項,並右鍵證書,在全部任務裏面選擇導入:spa

分享一個SSL證書在線轉換工具,以及IIS7環境下開通https的方法

⑤、在彈出的界面的右下角,選擇我的信息交換 pfx 格式,並選擇剛剛經過在線轉換獲得的 pfx 證書:.net

 

分享一個SSL證書在線轉換工具,以及IIS7環境下開通https的方法

⑥、後面繼續跟着嚮導操做直到導入成功(導入時須要輸入以前設置的證書密碼),刷新管理界面看到證書便可。3d

 

IIS7 https沒法綁定主機頭,顯示灰色

IIS7下面默認HTTPS綁定是沒法指定主機頭的,但咱們能夠經過手工修改IIS配置來實現主機頭綁定。

打開C:\Windows\system32\inetsrv\config\applicationHost.config

定位到以下位置:

<bindings>
<binding protocol="https" bindingInformation="*:443" />
<binding protocol="net.tcp" bindingInformation="808:*" />
<binding protocol="net.pipe" bindingInformation="*" />
<binding protocol="net.msmq" bindingInformation="localhost" />
<binding protocol="msmq.formatname" bindingInformation="localhost" />
<binding protocol="http" bindingInformation="*:80:www.pianyiSSL.com" /> </bindings>
找到https的配置項目行,修改成:
<binding protocol="https" bindingInformation="*:443:www.www.pianyissl.com" />
注意這裏的www.pianyissl.com要換成你本身的域名,以後保存便可。

 

如何解決更新證書、或者建立SSL證書的時候顯示「沒法生成證書請求,拒絕訪問」等提示信息

C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys

就吧這個文件夾的權限設置Administrator(若是你登錄的用戶是其餘,請填寫這個用戶名)徹底控制便可

 

web不能訪問https驗證文件

******************************************************************************
The ACME server was probably unable to reach http://linkflys.com/.well-known/acme-challenge/DGz4z_A_VsgO3dilCAB8bkgurpPt

Check in a browser to see if the answer file is being served correctly.

*****************************************************************************

在根目錄下加上文件 web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension="." mimeType="text/plain" />
        </staticContent>
    </system.webServer>
</configuration>

 

iis7配置https

下載letsencrypt-win-simple.V1.9.1

letsencrypt.exe --accepttos --manualhost 你的域名 --webroot 你的網站路徑(wwwroot路徑)

輸入是否要指定使用者 (用戶),輸入 N。( 一旦選擇了Y,會讓你輸入用戶名和密碼,證書會進行用戶認證 )。
參考文檔:http://www.cnblogs.com/silin6/p/5931640.html

 

最後,在iis7 站點右擊——網站綁定——從新編輯更新SSL證書

相關文章
相關標籤/搜索