WTserver (WinNMP) SSL憑證安裝實作

安裝好WinNMP後,若你的網站需要免費的SSL憑證可參考以下方式:

WTserver (WinNMP) SSL憑證安裝實作

先開啟command視窗

Register your account key in Let's Encrypt - Only once !

acmePhp register name@yourname.com

Generate an authorization token for the domain

acmePhp authorize www.yourname.com

Publish the authorization token in the project`s directory This step is implemented and available only on WinNMP

acmePhp publish www.yourname.com www.yourname.com

Ask the server to check your proof

acmePhp check www.yourname.com

Get the certificate!

acmePhp request www.yourname.com

WTserver (WinNMP) SSL憑證安裝實作

在\WinNMP\conf 會多了一個目錄.acemphp,代表憑證發行成功!

編輯網站的conf檔,加入

ssl_certificate .acmephp/master/certs/www.yourname.com/fullchain.pem;
ssl_certificate_key .acmephp/master/private/www.yourname.com/private.pem;

重啟Ngnix,完成。

WTserver (WinNMP) SSL憑證安裝實作

Let's Encrypt SSL 憑證三個月要更新一次,如果之後要更新憑證請執行

acmePhp request -q -n www.yourname.com

與大家分享...
WTserver (WinNMP) SSL憑證安裝實作
Facebook
0WTserver (WinNMP) SSL憑證安裝實作
Google+
0WTserver (WinNMP) SSL憑證安裝實作
Pinterest
0WTserver (WinNMP) SSL憑證安裝實作
email
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *