sudo apt update
sudo apt install snapd -y
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --manual --preferred-challenges dns -d yourdomain.com
输入邮箱后,会出现以下的内容,
Please deploy a DNS TXT record under the name:
_acme-challenge.****.yourdomain.com.
with the following value:
*******
为cloudflare添加域名解析,解析内容:_acme-challenge.jp1,具体值*******
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/****.yourdomain.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/****.yourdomain.com/privkey.pem
Comments NOTHING