jimtse
网站页面
sudo su
cd ~
wget https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
tar xvf master.tar.gz
cd acme.sh-master/
sudo ./acme.sh --install --nocron --home /usr/local/share/acme.sh --accountemail "example@gmail.com"
sudo -i
source ~/.profile
export CF_Key="xxxxx"
export CF_Email="example@gmail.com"
cd /usr/local/share/acme.sh
export CERT_DOMAIN="***.com"
export CERT_DNS="dns_cf"
./acme.sh --issue --server letsencrypt --home . -d "$CERT_DOMAIN" --dns "$CERT_DNS"
cd /usr/local/share/acme.sh
export SYNO_Username='xxxx'
export SYNO_Password='****'
export SYNO_DID='账号开启2FA时必须参数,请在浏览器登录群晖后使用F12打开开发者工具,点击application标签下的cookies获取'
export SYNO_Certificate=""
./acme.sh --deploy --home . -d "$CERT_DOMAIN" --deploy-hook synology_dsm
/usr/local/share/acme.sh/acme.sh --cron --home /usr/local/share/acme.sh/
cd /usr/local/share/acme.sh
./acme.sh --force --upgrade --nocron --home /usr/local/share/acme.sh
/root/.profile
文件中:. "/usr/local/share/acme.sh/acme.sh.env"
Jim Tse
https://jimtse.eu.org:88/Linux/synology-acme-gen-ssl.html(转载时请注明本文出处及文章链接)