acme.sh 使用备注
官方网站:
https://github.com/acmesh-official/acme.sh
1. 使用 aliyun 直接注册证书
使用 ecc 算法
1
2
3
4
| export Ali_Key=""
export Ali_Secret=""
acme.sh --issue -d example.com --keylength ec-256 --dns dns_ali
|
2. 使用别名方式注册证书
使用 ecc 算法
1
2
3
4
| export Ali_Key=""
export Ali_Secret=""
acme.sh --issue -d example.com --keylength ec-256 --dns dns_ali --challenge-alias example2.com
|
3. 安装到 nginx
1
2
3
4
| acme.sh --install-cert --ecc -d example.com \
--key-file /path/to/keyfile/in/nginx/key.pem \
--fullchain-file /path/to/fullchain/nginx/cert.pem \
--reloadcmd "service nginx force-reload"
|
4. 删除证书
1
| acme.sh --remove --ecc -d example.com
|