Code Monkey home page Code Monkey logo

botcaa's Introduction

botcaa

Automatically generate CAA records from Certbot config

Certificate enrollment using domain name validation (DV) is subject to attacks on DNS as well as routing attacks such as BGP hijacking. DNSSEC helps to mitigate the DNS based attacks, but even if the DNS is secured the target IP addresses can be hijacked or MITMed (other attacks against routing/forwarding).

CAA records[1] can be used to limit the CAs, which can issue certificates for a domain. This alone helps with the DV issue, as a BGP hijacker has to target a specific provider instead of any DV provider. Perhaps more importantly, the specification allows to bind renewals to an account-uri, which means that renewal requests can be made only with specific account credentials. These constraints force the attacker to either attack the DNSSEC enabled nameserver and its keys, or the server that has the DV account credentials.

This tool generates account-uri constrained CAA records from existing certbot renewal configuration. The tool parses the configuration, and outputs a CAA record line, which can be used on up to date versions of BIND (possibly NSD and others as well).

Note 2017-08-20: I haven't tested the tool on an actual nameserver yet, just that it produces correct looking output.

[1] https://tools.ietf.org/html/draft-ietf-acme-caa

botcaa's People

Contributors

joonakannisto avatar

Watchers

 avatar

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.