添加新证书和域名
sudo certbot certonly --cert-name example.com -d a1.example.com -d a2.example.com
手动续期证书
sudo certbot renew --cert-name example.com --force-renewal
需要关闭nginx,续期后再启动nginx。
自动定时检测和续签
sudo crontab -e 0 3 * * * certbot renew --quiet --deploy-hook "nginx -s reload"