少女祈祷中...
NEKO
知识库

acme

安装

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.conf

ssl 配置

申请 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"

评论