为非标准443端口申请证书

koaker 发布于 2025-05-29 所有文章


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
此作者没有提供个人介绍。
最后更新于 2025-05-31