Linux acme.sh 和 Windows win-acme 免费SSL证书

Posted by Sunday on 2020-01-16

Linux

https://github.com/Neilpang/acme.sh
crontab 强制每月续期

1
00 03 * */1 * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" --force &> /dev/null

泛域名

1
2
3
4
5
6
7
8
9
10
11
12
export DP_Id="49xxx"
export DP_Key="58fe6xxxxxxxxxxxxxxxxxxxxxx"

SSL_PATH=/data/ssl/acme
DOMAIN=sundayle.com
acme.sh --issue --dns dns_dp -d $DOMAIN -d *.$DOMAIN

mkdir -p $SSL_PATH
acme.sh --installcert -d $DOMAIN \
--key-file $SSL_PATH/$DOMAIN.key \
--fullchain-file $SSL_PATH/$DOMAIN.pem \
--reloadcmd "/etc/init.d/nginx reload"

windows

https://github.com/PKISharp/win-acme/releases
定时任务强制每月续期

1
C:\soft\win-acme.v1.9.10.0\letsencrypt.exe --forcerenewal --baseuri "https://acme-v01.api.letsencrypt.org/"

windows-renew