Code Monkey home page Code Monkey logo

acme-dns-certbot-hook's Introduction

acme-dns-certbot-hook

Overview Go Report Card

A Certbot hook for acme-dns.

Install

go install github.com/koesie10/acme-dns-certbot-hook@latest

Usage

This project is for use with the certbot manual plugin. It needs to be run as the --manual-auth-hook in the following manner:

certbot certonly --manual --manual-auth-hook '/etc/acme-dns/acme-dns-certbot-hook -config /etc/acme-dns/acme_dns.json' --preferred-challenges dns -d example.org

In this command, you will need to change /etc/acme-dns to the path where you have placed acme-dns-certbot-hook and your config file. You will also need to change the domain and make sure you have set up the domain using acme-dns.

Configuration

A sample configuration file:

{
    "acme_dns_url": "https://auth.acme-dns.io",
    "propagation_duration": "10s",
    "domains": {
        "example.org": {
            "allowfrom": [
                "192.168.100.1/24",
                "1.2.3.4/32",
                "2002:c0a8:2a00::0/40"
            ],
            "fulldomain": "8e5700ea-a4bf-41c7-8a77-e990661dcc6a.auth.acme-dns.io",
            "password": "htB9mR9DYgcu9bX_afHF62erXaH2TS7bg9KW3F7Z",
            "subdomain": "8e5700ea-a4bf-41c7-8a77-e990661dcc6a",
            "username": "c36f50e8-4632-44f0-83fe-e070fef28a10"
        }
    }
}

The acme_dns_url and propagation_duration can be overwritten per domain by specifying them along with the other information.

The information in the domain section can be directly copied from the response of the /register endpoint of the acme-dns server. Only the username and password are strictly required.

License

MIT.

acme-dns-certbot-hook's People

Contributors

koesie10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.