安装
https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E
curl https://get.acme.sh | sh -s email=my@example.com修改默认 CA
acme.sh --set-default-ca --server letsencrypt配置阿里云 key
echo 'SAVED_Ali_Key="xxx"' >> ~/.acme.sh/account.conf
echo 'SAVED_Ali_Secret="xxxx"' >> ~/.acme.sh/account.confssl 配置
申请 ssl 证书
acme.sh --issue --dns dns_ali -d *.starneko.top -d starneko.top安装 ssl 证书
acme.sh --install-cert -d *.starneko.top \
--key-file /opt/dev/nginx/ssl/starneko/key.pem \
--fullchain-file /opt/dev/nginx/ssl/starneko/cert.pem \
--reloadcmd "bash /opt/dev/nginx/ssl/realod_starneko_ssl.sh"
评论