certbot官网
下载certbot
wget -c https://dl.eff.org/certbot-auto -P /usr/local/bin
chmod +x /usr/local/bin/certbot-auto
certbot-auto --version
申请证书
certbot-auto certonly -d *.example.com --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
- certonly 安装模式
- -d 申请证书的域名,如果是通配符域名输入 *.example.com
- –manual 手动安装插件
- –preferred-challenges dns 使用 DNS 方式校验域名所有权
- –server,Let’s Encrypt ACME v2 版本使用的服务器不同于 v1 版本,需要显示指定
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): xxx@163.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of