linux系统中使用certbot实现自动申请ssl证书

安装certbot客户端
[*****]wget https://dl.eff.org/certbot-auto
[*****]chmod a+x certbot-auto

生成证书
[*****]./certbot-auto certonly --email 123456@qq.com --agree-tos --webroot -w /var/www/html/ -d aaa.com -d www.aaa.com
证书地址 /etc/letsencrypt/live/aaa.com/
fullchain.pem privkey.pem

证书续签
[*****]./certbot-auto renew