linux安装acme.sh自动更新https证书

  sre

curl https://get.acme.sh | sh
alias acme.sh=~/.acme.sh/acme.sh
echo 'alias acme.sh=~/.acme.sh/acme.sh' >>/etc/profile
mkdir /usr/local/nginx/ssl
acme.sh --installcert \
-d yourdomain.com \
--key-file /usr/local/nginx/ssl/yourdomain.com.key \
--fullchain-file /usr/local/nginx/ssl/yourdomain.com.crt \
--reloadcmd "service nginx force-reload"

One Reply to “linux安装acme.sh自动更新https证书”

LEAVE A COMMENT

Captcha Code