Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
TAG
 
 
 
 
 
 
 
 

letsencrypt auto renewal by dns challenge

使用条件:

  • 域名接入阿里云DNS
  • 已经有解析记录存在

env

  • ALI_SECRET_ID=
  • ALI_SECRET_KEY=

create accounts and renewal config file

  • shell
$ certbot certonly --manual --preferred-challenges=dns --manual-auth-hook /usr/src/app/authenticator.sh -d hub.digi-sky.com
  • docker
docker run -it --rm --name alidns -e ALI_SECRET_ID=xxx -e ALI_SECRET_KEY=xxx -v /data/ssl/:/etc/letsencrypt/ hub.digi-sky.com/base/alidns:1.0.0 update hub.digi-sky.com

renewal by force

  • shell
certbot renew --force-renewal
  • docker
docker run -it --rm --name alidns -e ALI_SECRET_ID=xxx -e ALI_SECRET_KEY=xxx -v /data/ssl/:/etc/letsencrypt/ hub.digi-sky.com/base/alidns:1.0.0

renewal cron

$ crontab -l

00 09 01 * * /root/cron/update_cert_cron.sh # 每月定时重新签发一次证书

About

自动刷新letsencrypt证书 - dns认证

Resources

Releases

No releases published

Packages

No packages published