#自动更新acme.sh
acme.sh –upgrade –auto-upgrade
下载acme.sh
sudo su –
curl https://get.acme.sh | sh
或者
./acme.sh –install
#LNMP添加SSL证书命令
lnmp ssl add
#显示证书域名
lnmp vhost list
#使用以下命令更新证书:
(1)非DNS验证方式
acme.sh –renew -d yourdomian.com
(2)DNS验证方式(如果你使用第一个命令更新,域名是用的DNS验证方式,会有提示)
acme.sh –issue -d yourdomian.com –dns \
–yes-I-know-dns-manual-mode-enough-go-ahead-please
lnmp restart
#lnmp电子邮件 证书续期
?内容丢失
手动续期
/root/.acme.sh/acme.sh –cron –home /root/.acme.sh
参考
https://paugram.com/tech/acme-sh-upgrade-lets-encrypt-v1-to-v2.html/comment-page-1
自动续期证书(搜索一下命令)
0 3 * * * “/usr/local/acme.sh”/acme.sh –cron –home “/usr/local/acme.sh” >
“/usr/local/acme.sh”/acme.sh –cron –home “/usr/local/acme.sh” > /dev/nul