CentOS:安装Let's Encrypt证书

来自WHY42
imported>Riguz2018年7月16日 (一) 08:21的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

在CentOS上支持Let's Encrypt的ssl证书、参见https://certbot.eff.org/#centos6-apache。如果是其他环境,可以在https://certbot.eff.org/寻找合适的方法。

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto

./certbot-auto

根据提示执行即可。证书每3个月会失效,到期时需要更新证书:

./certbot-auto renew
./certbot certificates

如果新增了站点,譬如ubuntu下

sudo certbot --apache

"Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA." 出现这个原因的话,升级一下certbot即可