Centos7 Certbot 常用命令相关总结

本文总结了Centos7环境下使用Certbot进行SSL证书生成、更新与管理的常用命令。包括生成证书的不同方式、查看帮助、管理账号、同意服务条款、更新邮箱地址、查看证书状态、续期证书等关键操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Centos7 Certbot 常用命令相关总结

前言

工作中常常遇到一些奇奇怪怪的问题,记录并总结下来并持续更新

总结

#生成证书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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大锅霍皮久

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值