LetsEncrypt 是免費的 SSL 憑證
官網推薦的套件 Certbot,可透過指令取得憑證。
1.首先安裝 EPEL 套件
1 |
yum -y install epel-release |
2.安裝 Certbot
1 |
yum -y install certbot |
3.驗證並取得憑證 (如果沒有 Nginx 就裝一下吧,yum -y intsall nginx)
1 |
certbot certonly --webroot -w /usr/share/nginx/html -d www.rusnake.com |
-w:後面接網站根目錄
-d:為域名 (Domain Name)