Skip to content

rezoleo/certificate_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Automatic TLS renewal

A project to automatically renew TLS certificate using Let's Encrypt renewal

This project uses Certbot and Vault. Certbot create the certificate and Vault propagates the certificate to the servers that need it.

Renewal part

The renewal part of the code is in the folder renew_and_push. Note that in the folder renew_and_push/certbot_custom_hooks a file "role_id" and "secret_id" created by Vault are needed. To do that you can see the AppRole documentation. To automatize the renewal you can do a Crontab running certbot renew. This code should be run on your DNS server. Note that your DNS server should also have a web server running with a text file included (used in python certbot scripts).

Propagation part

The code for the propagation part is situated in the get_cert/ directory. This code should be run by the command vault agent -config agent-config.hcl on the servers that need the TLS certificate. Note that a "role_id" and "secret_id" file are needed on the directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published