Giter Club home page Giter Club logo

bot-alphahosting's Introduction

ACME Client Automating DNS-01 Challenge for Alfahosting Domains

This is an ACME (letsencrypt by default) client that performs DNS-01 proofs agains an alfahosting standard contract with browser DNS settings.

If you like my work consider supporting me over at Patreon.

Config file

There needs to be a file /etc/certbot-alfahosting/config.toml containing the following entries:

# certpath = "/etc/letsencrypt"

[alfahosting]
username = "alfauser"
password = "alfapassword"
## id of the contract (usually called "NameX" where X can be a number such as 30)
ipid = "000000"

# this is where you configure the email address the alfahosting login code is sent to.
[imap]
domain = "imap.example.com"
port = 993
username = "[email protected]"
password = "password"

[acme]
# directory_url = "https://acme-v02.api.letsencrypt.org/directory"
account = "[email protected]"

[domains]
## IDs on the right hand side represent the ID of the domain in the
## Alfahosting DNS configuration. It can be acquired by inspecting the
## DOM on that page.
"*.example.com" = "000000"
# The first domain is the CN all others are aliases
"*.another-domain.com alias.another-domain.com" = "123456"

Note, that it needs the email address in order to check for the code that is sent to your email address whenever you try to log in to your alfahosting account from a new browser.

The docker container

In order for the client to work best and in order to play nice with your ACME provider this container is best run as a weekly cron job.

0 0 * * 0 root docker run --rm -v /etc/letsencrypt:/etc/letsencrypt -v /etc/certbot-alfahosting:/etc/certbot-alfahosting m3t4lukas/certbot-alfahosting:latest

Please feel free to randomize the numbers set to zero in this example as to not hit the letsencrypt servers with too high of a load at that time.

bot-alphahosting's People

Contributors

hardworking-toptal-dev avatar

Stargazers

 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.