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

Country Name (2 letter code) [AU]:TW
State or Province Name (full name) [Some-State]:Taipei
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:hahasmile
Organizational Unit Name (eg, section) []:blog
Common Name (e.g. server FQDN or YOUR name) []:blog.hahasmile.com
Email Address []:dorigo.tw@yahoo.com.tw

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:xxxxxxxxxxxxxxx
An optional company name []:hahasmile

 

WTserver (WinNMP) SSL憑證安裝實作

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

WTserver (WinNMP) SSL憑證安裝實作
WTserver (WinNMP) SSL憑證安裝實作

編輯網站的conf檔,加入

listen       *:443;

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憑證安裝實作

關於作者 多力哥
WTserver (WinNMP) SSL憑證安裝實作
影像創作攝影師/網頁動畫設計師/系統網路工程師/水草研究生
景文科大畢業後,我成為一名網站動畫設計師,並副修MIS電腦資訊管理。2004年,我開始接觸單眼相機,並在2008年正式成為一名接案攝影師,目前使用Canon系統進行拍攝。2016年,我愛上了美麗的水草缸,這讓我的生活多了另一層次的放鬆。每天在電腦前修圖時,能欣賞紅吱吱、綠油油的水草,彷彿多了一份平靜與愉悅。攝影與水草讓我的生活充滿了藝術與自然的交融。
連絡信箱:hello@hahasmile.com (歡迎合作提案)
DORIGO IMAGE 攝影工作室:https://dorigo-image.com
如果你喜歡我的內容,可以用行動贊助我一杯咖啡☕,支持我持續創作,也讓這個網站可以繼續營運下去喔!

若您喜歡這篇文章,歡迎按讚分享喔!
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *