1. 程式人生 > >Let's Encrypt 通配符證書申請

Let's Encrypt 通配符證書申請

通配符 dir chmod rto api -c RM director 有效

1.獲取certbot-auto

wget https://dl.eff.org/certbot-auto

2.添加執行權限

chmod u+x certbot-auto

3.申請證書

sudo ./certbot-auto --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns-01 certonly  -d "*.your-domain.com"

4.添加TXT記錄
_acme-challenge.your-domain.com
記錄值為:(生成的字符串)

5.可根據以下命令查詢TXT記錄是否生效

dig _acme-challenge.your-domain.com txt

6.證書生成成功後保存在 /etc/letsencrypt/live/your-domain.com/

7.證書有效期為三個月,重新生成證書命令 certbot-auto renew

Let's Encrypt 通配符證書申請