acme.sh 自动签署 SSL 证书

发布于 2021-09-28  3.41k 次阅读


记性不太好,在这里稍微记一下几条命令。

安装

wget -O -  https://get.acme.sh | sh

申请证书

使用 DNSPod。

export DP_Id="<dnspod id>"
export DP_Key="<dnspod key>"
/root/.acme.sh/acme.sh --issue --dns dns_dp -d <domain>

部署证书

/root/.acme.sh/acme.sh --installcert -d <domain> \
                       --key-file <path to key> \
                       --fullchain-file <path to crt> \
                       --reloadcmd "service nginx force-reload"

我缓慢吐出一串啊吧啊吧并不再想说话