Certbot:自动部署 Let's Encrypt 证书
日前,电子前哨基金会(EFF)为 Let's Encrypt 推出了客户端 Certbot。通过 Certbot,你可以自动部署 Let's Encrypt 证书,以便为网站加上 HTTPS 支持。

安装
sudo apt-get install letsencrypt -t jessie-backports # Debian 8
sudo apt-get install letsencrypt                     # Debian testing/unstable, Ubuntu 16.04
wget https://dl.eff.org/certbot-auto                 # CentOS/RHEL 7
chmod a+x certbot-auto                               # CentOS/RHEL 7
获得证书
letsencrypt certonly  # Debian/Ubuntu
certbot-auto certonly # CentOS/RHEL
自动续期
将下列命令加入 cron 即可:
letsencrypt renew --quiet  # Debian/Ubuntu
certbot-auto renew --quiet # CentOS/RHEL
→ Certbot