網站有個 SSL 證書,可以提高安全性、及提高搜索引擎的排名,
Let’s Encrypt SSL 證書是免費的,可以用命令列申請,也可以用命令列續期,
Let’s Encrypt 網站推薦用 cerbot 工具,這個工具軟體在不同的年份,有不同的用法(可能是不同軟體版本的命令列,引數與之前版本改動較大),網上查到的往往行不通,這篇文章介紹當前版本可用的命令列引數使用方法,
參考網站:
https://letsencrypt.org/zh-cn/
https://certbot.eff.org/instructions
a. 申請有通配符的域名 SSL 證書:
certbot certonly -d *.somedomain.com --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
根據提示,輸入對應的資訊,生成證書后,可更改 nginx/apache 對應的組態檔,
b. 定時運行命令,續期 SSL 證書:
certbot certonly -d *.somedomain.com --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
命令與前一步一樣,得到的提示不同,如下:
What would you like to do? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: Keep the existing certificate for now 2: Renew & replace the certificate (may be subject to CA rate limits) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
選擇 2,進行 SSL 證書續期,續期后的證書,是覆寫原有的,
-------此博客同時發表于 https://my.oschina.net/jacklondon,https://www.cnblogs.com/jacklondon,https://www.zheguisoft.com/staff_blogs/jacklondon_chen/2022 ,歡迎轉載,
轉載請注明出處: http://www.cnblogs.com/jacklondon ; 歡迎訪問 http://www.zheguisoft.com/ 并提建議,轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/421644.html
標籤:其他
上一篇:Java URLDNS鏈學習
