禁止更新
使用 —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.log
Plugins selected: Authenticator manual, Installer None
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for sase.sangfor.com.cn
dns-01 challenge for sase.sangfor.com.cn
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your 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_i1Zi2ecrJOo
Before 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_UnviGM5L7niqDZK3wA
Before 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 be
asked to create multiple distinct TXT records with the same name. This is
permitted by DNS standards.)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/sase.sangfor.com.cn/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/sase.sangfor.com.cn/privkey.pem
Your cert will expire on 2021-03-31. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. 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/donate
Donating to EFF: https://eff.org/donate-le
删除证书
方法一、使用certbot
1 查看已安装的证书
certbot certificates
返回结果如下
Found the following certs:
Certificate Name: example.com
Domains: example.com, www.example.com
Expiry Date: 2017-02-19 19:53:00+00:00 (VALID: 30 days)
Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem
2 可以通过如下命令将指定的域名删除
certbot delete --cert-name example.com