GithubHelp home page GithubHelp logo

418sec / dnsrobocert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adferrand/dnsrobocert

0.0 2.0 1.0 961 KB

Orchestrate Certbot and Lexicon together to provide Let's Encrypt TLS certificates validated by DNS challenges

Home Page: https://dnsrobocert.readthedocs.io

License: MIT License

Shell 1.31% Dockerfile 1.74% Python 96.95%

dnsrobocert's Introduction

DNSroboCert

version python_support docker ci coverage spectrum

DNSroboCert is designed to manage Let's Encrypt SSL certificates based on DNS challenges.

  • Let's Encrypt wildcard and regular certificates generation by Certbot using DNS challenges,
  • Integrated automated renewal of almost expired certificates,
  • Standardized API through Lexicon library to insert the DNS challenge with various DNS providers,
  • Centralized YAML configuration file to maintain several certificates and several DNS providers with configuration validity control,
  • Modification of container configuration without restart,
  • Flexible hooks upon certificate creation/renewal including containers restart, commands in containers or custom hooks,
  • Support for DNS alias mode (see the follow_cnames option in the certificate section),
  • Linux, Mac OS X and Windows support, with a particular care for Docker services,
  • Delivered as a standalone application and a Docker image.

If you are reading these lines, you certainly want to secure all your services using Let's Encrypt SSL certificates, which are free and accepted everywhere.

If you want to secure Web services through HTTPS, there is already plenty of great tools. In the Docker world, one can check Traefik, or nginx-proxy + letsencrypt-nginx-proxy-companion. Basically, theses tools will allow automated and dynamic generation/renewal of SSL certificates, based on TLS or HTTP challenges, on top of a reverse proxy to encrypt everything through HTTPS.

So far so good, but you may fall in one of the following categories:

  1. You are in a firewalled network, and your HTTP/80 and HTTPS/443 ports are not opened to the outside world.
  2. You want to secure non-Web services (like LDAP, IMAP, POP, etc.) were the HTTPS protocol is of no use.
  3. You want to generate a wildcard certificate, valid for any sub-domain of a given domain.

For the first case, ACME servers need to be able to access your website through HTTP (for HTTP challenges) or HTTPS (for TLS challenges) in order to validate the certificate. With a firewall these two challenges - which are widely used in HTTP proxy approaches - will not be usable: you need to ask a DNS challenge. Please note that traefik embed DNS challenges, but only for few DNS providers.

For the second case, there is no website to use TLS or HTTP challenges, and you should ask a DNS challenge. Of course you could create a "fake" website to validate the domain using a HTTP challenge, and reuse the certificate on the "real" service. But it is a workaround, and you have to implement a logic to propagate the certificate, including during its renewal. Indeed, most of the non-Web services will need to be restarted each time the certificate is renewed.

For the last case, the use of a DNS challenge is mandatory. Then the problems concerning certificates propagation that have been discussed in the second case will also occur.

The solution is a dedicated and specialized tool which handles the creation/renewal of Let's Encrypt certificates, and ensure their propagation in the relevant services. It is the purpose of this project.

Online documentation (user guide, configuration reference) is available in the DNSroboCert documentation.

For a quick start, please have a look in particular at the User guide and the Lexicon provider configuration.

Do not hesitate to join the DNSroboCert community on Spectrum if you need help to use or develop DNSroboCert!

If you want to help in the DNSroboCert development, you are welcome! Please have a look at the Developer guide page to know how to start.

dnsrobocert's People

Contributors

a16bitsysop avatar adferrand avatar artiomn avatar charleszlu avatar ctepeo avatar davidyuk avatar dennis14e avatar dependabot-preview[bot] avatar mgh87 avatar mika56 avatar mjclemente avatar ronaldtveen avatar thatrevguy avatar unixorn avatar

Watchers

 avatar  avatar

Forkers

b1nslashsh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.