前言
工作中常常遇到一些奇奇怪怪的问题,记录并总结下来并持续更新
总结
#生成证书1
certbot certonly
#生成证书2
certbot --nginx certonly -n -d domain
#生成证书3 指定nginx路径
certbot --nginx-server-root=/data/nginx/conf --nginx certonly -n -d domain
#查看帮助
certbot -h
#管理账号
#Create an ACME account
certbot register
#Deactivate an ACME account
certbot unregister
#Update an ACME account
certbot update_account
#Agree to the ACME server's Subscriber Agreement
--agree-tos
#Email address for important account notifications | 如果是自定义路径安装的nginx,执行该命令会找不到nginx.conf,使用certbot update_account也可以更新邮箱地址。
certbot -m $EMAIL
#查看服务器上所有域名证书状态
certbot certificates
#证书过期,从[a-z]首字母顺序全部续期
certbot renew
#证书过期,指定nginx路径,从[a-z]首字顺序全部续期
certbot renew --nginx-server-root=/data/nginx/conf --nginx
#
#证书过多,指定域名续期
certbot --nginx certonly -n -d domain
#证书过度,指定nginx路径,指定域名续期
certbot --nginx-server-root=/data/nginx/conf --nginx certonly -n -d domain