禁止更新
使用 —no-self-upgrade 参数,要不然每次执行都会自动更新
root@issp:~# /usr/sbin/certbot-auto certonly --no-self-upgrade -d sase.sangfor.com.cn -d *.sase.sangfor.com.cn --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory/usr/sbin/certbot-auto has insecure permissions!To learn how to fix them, visit https://community.letsencrypt.org/t/certbot-auto-deployment-best-practices/91979/Saving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator manual, Installer NoneObtaining a new certificatePerforming the following challenges:dns-01 challenge for sase.sangfor.com.cndns-01 challenge for sase.sangfor.com.cn- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -NOTE: The IP of this machine will be publicly logged as having requested thiscertificate. If you're running certbot in manual mode on a machine that is notyour server, please ensure you're okay with that.Are you OK with your IP being logged?- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(Y)es/(N)o: y- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Please deploy a DNS TXT record under the name_acme-challenge.sase.sangfor.com.cn with the following value:U1gVWMqaP-Mq3wZRwchWOWHnqufEVSA_i1Zi2ecrJOoBefore continuing, verify the record is deployed.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Press Enter to Continue- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Please deploy a DNS TXT record under the name_acme-challenge.sase.sangfor.com.cn with the following value:bIAL19cwAOYez5s-JyBzaUWg_UnviGM5L7niqDZK3wABefore continuing, verify the record is deployed.(This must be set up in addition to the previous challenges; do not remove,replace, or undo the previous challenge tasks yet. Note that you might beasked to create multiple distinct TXT records with the same name. This ispermitted by DNS standards.)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Press Enter to ContinueWaiting for verification...Cleaning up challengesIMPORTANT NOTES:- Congratulations! Your certificate and chain have been saved at:/etc/letsencrypt/live/sase.sangfor.com.cn/fullchain.pemYour key file has been saved at:/etc/letsencrypt/live/sase.sangfor.com.cn/privkey.pemYour cert will expire on 2021-03-31. To obtain a new or tweakedversion of this certificate in the future, simply run certbot-autoagain. To non-interactively renew *all* of your certificates, run"certbot-auto renew"- If you like Certbot, please consider supporting our work by:Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donateDonating to EFF: https://eff.org/donate-le
删除证书
方法一、使用certbot
1 查看已安装的证书
certbot certificates
返回结果如下
Found the following certs:Certificate Name: example.comDomains: example.com, www.example.comExpiry Date: 2017-02-19 19:53:00+00:00 (VALID: 30 days)Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pemPrivate Key Path: /etc/letsencrypt/live/example.com/privkey.pem
2 可以通过如下命令将指定的域名删除
certbot delete --cert-name example.com
