注:免费证书软件

禁止更新

使用 —no-self-upgrade 参数,要不然每次执行都会自动更新

  1. 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
  2. /usr/sbin/certbot-auto has insecure permissions!
  3. To learn how to fix them, visit https://community.letsencrypt.org/t/certbot-auto-deployment-best-practices/91979/
  4. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  5. Plugins selected: Authenticator manual, Installer None
  6. Obtaining a new certificate
  7. Performing the following challenges:
  8. dns-01 challenge for sase.sangfor.com.cn
  9. dns-01 challenge for sase.sangfor.com.cn
  10. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  11. NOTE: The IP of this machine will be publicly logged as having requested this
  12. certificate. If you're running certbot in manual mode on a machine that is not
  13. your server, please ensure you're okay with that.
  14. Are you OK with your IP being logged?
  15. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  16. (Y)es/(N)o: y
  17. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  18. Please deploy a DNS TXT record under the name
  19. _acme-challenge.sase.sangfor.com.cn with the following value:
  20. U1gVWMqaP-Mq3wZRwchWOWHnqufEVSA_i1Zi2ecrJOo
  21. Before continuing, verify the record is deployed.
  22. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. Press Enter to Continue
  24. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  25. Please deploy a DNS TXT record under the name
  26. _acme-challenge.sase.sangfor.com.cn with the following value:
  27. bIAL19cwAOYez5s-JyBzaUWg_UnviGM5L7niqDZK3wA
  28. Before continuing, verify the record is deployed.
  29. (This must be set up in addition to the previous challenges; do not remove,
  30. replace, or undo the previous challenge tasks yet. Note that you might be
  31. asked to create multiple distinct TXT records with the same name. This is
  32. permitted by DNS standards.)
  33. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  34. Press Enter to Continue
  35. Waiting for verification...
  36. Cleaning up challenges
  37. IMPORTANT NOTES:
  38. - Congratulations! Your certificate and chain have been saved at:
  39. /etc/letsencrypt/live/sase.sangfor.com.cn/fullchain.pem
  40. Your key file has been saved at:
  41. /etc/letsencrypt/live/sase.sangfor.com.cn/privkey.pem
  42. Your cert will expire on 2021-03-31. To obtain a new or tweaked
  43. version of this certificate in the future, simply run certbot-auto
  44. again. To non-interactively renew *all* of your certificates, run
  45. "certbot-auto renew"
  46. - If you like Certbot, please consider supporting our work by:
  47. Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
  48. Donating to EFF: https://eff.org/donate-le

删除证书

方法一、使用certbot
1 查看已安装的证书

  1. certbot certificates

返回结果如下

  1. Found the following certs:
  2. Certificate Name: example.com
  3. Domains: example.com, www.example.com
  4. Expiry Date: 2017-02-19 19:53:00+00:00 (VALID: 30 days)
  5. Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
  6. Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem

2 可以通过如下命令将指定的域名删除

  1. certbot delete --cert-name example.com

ISSP操作记录

LetsEncrypt00资料_ISSP操作记录(1).pdf