certbot certonly -d *.example.com --manual --preferred-challenges dns --dry-run --manual-auth-hook "/root/code/certbot/au.sh python aly add" --manual-cleanup-hook "/root/code/certbot/au.sh python aly clean"
实际申请:
1
certbot certonly -d *.example.com --manual --preferred-challenges dns --manual-auth-hook "/root/code/certbot/au.sh python aly add" --manual-cleanup-hook "/root/code/certbot/au.sh python aly clean"
4. 续期证书
对机器上所有证书 renew
1
certbot renew --manual --preferred-challenges dns --manual-auth-hook "/root/code/certbot/au.sh python aly add" --manual-cleanup-hook "/root/code/certbot/au.sh python aly clean"
对某一张证书进行续期
1 2 3 4
#先看看机器上有多少证书: certbot certificates #记住证书名,比如 simplehttps.com,然后运行下列命令 renew certbot renew --cert-name simplehttps.com --manual-auth-hook "/root/code/certbot/au.sh python aly add" --manual-cleanup-hook "/root/code/certbot/au.sh python aly clean"