官方文档: https://github.com/acmesh-official/acme.sh#1-how-to-install
使用环境为 ubuntu 20
安装 acme.sh
cd /home
git clone https://github.com/acmesh-official/acme.sh.git
cd ./acme.sh
#切换到root, 这是推荐的, 以免cron任务执行权限遇到问题
sudo su
#安装, 指定证书全部放到 /etc/nginx/conf.d.my/ssl_cert 下, 方便管理
./acme.sh --install --cert-home /etc/nginx/conf.d.my/ssl_cert --email 12345678@qq.com
安装命令执行过程:
root@xxxdev:/home/ubuntu/acme.sh# ./acme.sh --install --cert-home /etc/nginx/conf.d.my/ssl_cert --email 12345678@qq.com
[Wed 20 Apr 2022 01:39:18 PM CST] It is recommended to install socat first.
[Wed 20 Apr 2022 01:39:18 PM CST] We use socat for standalone server if you use standalone mode.
[Wed 20 A