Skip to content

Automatically renew LetsEncrypt wildcard certificates for domains using Hetzner name servers

License

Notifications You must be signed in to change notification settings

ahoz/hetzner-certbot-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automatically renew LetsEncrypt wildcard certificates for domains using Hetzner name servers

Requirements

  • Certbot
  • Python
  • Domain and Nameserver hosted on Hetzner
  • Hetzner DNS Api Token

Set config

Move config.ini.example to config.ini.

Set Api token.

Usage

Get first certificate

sudo certbot certonly --manual --preferred-challenges dns --manual-auth-hook ./hetznerdnshook.py -d domain.de -d *.domain.de

Renew certificate

This line can also be used for automated calls like inside cron scripts.

sudo certbot certonly  --manual --preferred-challenges dns --manual-auth-hook ./hetznerdnshook.py -d domain.de -d *.domain.de --dry-run --agree-tos  --manual-public-ip-logging-ok

Delete old TXT Entries

In order to delete old ACME TXT entries, you can use following command

python3 hetznerdnshook.py --delete domain.de

Keep in mind to replace domain.de with your own domain!

About

Automatically renew LetsEncrypt wildcard certificates for domains using Hetzner name servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages