cd /root/.acme.sh/
一、通过手动配置DNS解析
-
獲取DNS的TXT解析記錄内容
acme.sh --issue -d test.com -d *.test.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please -
修改DNS, 添加指定的TXT解析
-
再次生成,生成完成后會提示生成后的文件存放位置:
acme.sh --renew -d test.com -d *.test.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
二、通过DNS_API自动解析
1、生成证书
./acme.sh --issue --dns dns_ali -d test.com -d *.test.com
或
./acme.sh --issue --dns dns_ali -d test.com -d *.test.com --force
2、更新证书
./acme.sh --renew --dns dns_ali -d test.com -d *.test.com
或
./acme.sh --renew --dns dns_ali -d test.com -d *.test.com --force
三、通过http目录解析
acme.sh --issue -d test.com --webroot /opt/nginx/html/
acme.sh --renew -d test.com --webroot /opt/nginx/html/ --force