关闭nginx
systemctl stop nginx
申请证书
sudo certbot certonly -d "*.你申请的域名" --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
域名解析新增TXT记录
解析设置完成后继续执行
如图所示,恭喜证书已经生成成功!
启动nginx
systemctl stop nginx
systemctl stop nginx
sudo certbot certonly -d "*.你申请的域名" --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
如图所示,恭喜证书已经生成成功!
systemctl stop nginx