Skip to content

gdoornenbal/dehydrated-certificate-installers

Repository files navigation

dehydrated-certificate-installers

Tools to install Let's Encrypt certificates which are created with dehydrated, using dns-01 challenge with the TransIP API.

Fortigate

The fortigate.sh script checks if there's a new certificate (with ExpiryDate newer than current certificatet), adds encryption to the privatekey, and uploads it into the fortigate.

Installation: Copy the fortigate.conf and fortigate.sh file into the dehydrated map.

Configuration: Edit the fortigate.conf, set all values for your needs.

Usage: Start fortigate.sh. Default configuration file is fortigate.conf. You can use another configuration file as commandline option.

Fortimail

The fortimail.sh script checks if there's a new certificate (with timestamp today), adds encryption to the privatekey, and uploads it into the fortimail.

For further instructions: same as Fortigate.

update_tlsa

This script checks your TSLA DNS record (hosted by TransIP) for specified dns entry, and create/updates it when your TSLA record is incorrect. It's using the TransIP API. This script is initialy created to create tlsa records from local dehydrated certificates, but is now extended to create tlsa records from remote certificates to!

Installation: Copy the update_tlsa.php into the dehydrated map, where also the TransIP api exists.

Usage: Start the script with at least two commandline options:

update_tlsa.php -h <dnsname> -t <tlsatype without spaces> [ -p <tcp_port> -i <ip address remote service> ]

Start Let's Encrypt

Start startle.sh to manage all certificate and dns update's. I created a simple scriptfile to start the whole process in order, en create a logfile of the whole process. This logfile can be send to yourself to review the process..

You can schedule this script with cron. (e.g. once a week)

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0 6 * * 1 ~/dehydrated/startle.sh

About

Tools to install certificates which are created with dehydrated.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published