Skip to content

Python script to generate or renew Lets Encrypt certificates using AWS route 53.

License

Notifications You must be signed in to change notification settings

chet-space/certsnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

certsnake

Renew or create a Lets Encrypt certifcate for each CNAME and A record in AWS route 53. If the certificates are not up for renewal there will be no certificates output.

Requirements

Installation instructions

  • install python venv

      sudo apt install python3-venv -y
    
  • Clone repository

      git clone https://github.com/chet-space/certsnake.git
    
  • Create python venv

      cd certsnake && python3 -m venv venv
    
  • Activate venv

      source venv/bin/activate  
    
  • install requirements

      pip3 install pip --upgrade
      pip3 install -r requirements.txt
    
  • Install AWS cli

  • Add your Route53 HostedZoneId to configuration.py

  • Update email and other options at cli.ini

  • Create AWS credential file

      aws configure
    
  • run script

      python3 main.py
    
  • certificates are output to:

      /archive/<domain-name>/
      symlinks --> config/<domain-name>/live/<domain-name>/
    

About

Python script to generate or renew Lets Encrypt certificates using AWS route 53.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages