安装acme.sh
git clone https://github.com/acmesh-official/acme.sh.git
cd acme.sh
./acme.sh --install --home /opt/acme --accountemail email@gmail.com --nocron
自定义安装,acme.sh到目录/opt/acme。
自动认证签发证书
AliDNS
cd /opt/acme
Ali_Key=access-key Ali_Secret=access-secret acme.sh --issue --dns dns_ali -d '*.domain.com'
自动更新证书
/opt/acme/acme.sh --cron --home "/opt/acme"
可以将这行命令设置到cron,定期自动更新。