4-19
Saturday
标签
梦涛笔记

CentOS Certbot SSL

HTML CentOS Apache 发布时间:2025-03-14 17:14:06

安装命令

yum install certbot

获取证书命令

certbot certonly --manual -m jason@zhisg.com -d *.zhisg.com
certbot certonly --webroot -w /var/www/html/zhisg/ -d www.zhisg.com
certbot renew   #继订全部证书
certbot renew --cert-name domain.com  #指定证书


certonly 表示安装模式,Certbot 有安装模式和验证模式两种类型的插件。
–manual 表示手动安装插件,Certbot 有很多插件,不同的插件都可以申请证书,用户可以根据需要自行选择
-d 为那些主机申请证书,如果是通配符,输入 *.domain.com (替换为你自己的域名)
–preferred-challenges dns,使用 DNS 方式校验域名所有权
–server,Let’s Encrypt ACME v2 版本使用的服务器不同于 v1 版本,需要显示指定。
评论: