Let's Encrypt(开源SSL证书管理工具)
生活随笔
收集整理的這篇文章主要介紹了
Let's Encrypt(开源SSL证书管理工具)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
剛裝上一個(gè)StartSSL 的證書沒(méi)幾天,卻看到官方發(fā)出這樣的通知:
無(wú)聊中看到了網(wǎng)上各種相關(guān)的扯淡:
http://tieba.baidu.com/p/4801786642
http://www.techug.com/how-wosign-gave-me-an-ssl-certificate-for-github
無(wú)意中找到一個(gè)非商業(yè)、開(kāi)源的替代產(chǎn)品 letsencrypt ,安裝方法參考如下:
https://certbot.eff.org/
# CentOS 6.5 + nginx 為例 yum install epel-release wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto# 安裝依賴、生成證書 ./certbot-auto certonly --webroot -w /var/www/example -d www.example.com -d example.com # 可以指定多個(gè)子域名,但不支持通配符 # 寫入Nginx配置文件并讓配置生效 ./certbot-auto --force-renewal --nginx # 此處容易出錯(cuò),建議先手動(dòng)配置好nginx里面ssl相關(guān)字段,然后再用certbot腳本更新。在最新的certbot-auto腳本中,只需要這條命令而不需要certonly# 在 /etc/crontab 里面添加一行,每個(gè)星期3自動(dòng)檢查更新證書 3 3 * * 3 root /srv/laravel/certbot-auto renew --quiet --nginx & # 如果 Nginx 安裝目錄不是默認(rèn)的(比如用 OneinStack 安裝的環(huán)境),需要額外指定兩個(gè)參數(shù),例如: ./certbot-auto --force-renewal --nginx --nginx-server-root=/usr/local/nginx/conf/ --nginx-ctl=/usr/local/nginx/sbin/nginx # 參考:https://certbot.eff.org/docs/using.html#renewing-certificates參考:http://www.chinaz.com/web/2015/1221/486106.shtml
轉(zhuǎn)載于:https://www.cnblogs.com/liaozt/p/6034670.html
總結(jié)
以上是生活随笔為你收集整理的Let's Encrypt(开源SSL证书管理工具)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Git 忽略已经提交的文件
- 下一篇: 【001:这条路很漫长,但出发了就不要想