Skip to main content

Certbot hook for DNS challenge using iWay Portal API.

Project description

iway-certbot-dns-auth

Certbot hook for DNS challenge using iWay Portal API.

Dependencies

To use this module the certbot is required of course :-)

You can install certbot directly by your OS (e.g. Debian) and install
iway-certbot-dns-auth with:

pip install iway-certbot-dns-auth

To install the iway-certbot-dns-auth in your users home use:

pip install --user iway-certbot-dns-auth

This will install the module hooks under
$HOME/.local/bin/iway-certbot-auth-hook and
$HOME/.local/bin/iway-certbot-cleanup-hook. Don’t forget to expand your
PATH environment variable to PATH=$PATH:$HOME/.local/bin.

Or, better install certbot in a Python virtual environment together with
iway-certbot-dns-auth.

Config

The hook default config file is /etc/iway-certbot-dns-auth.yml but can
be change with the environment variable IWAY_CERTBOT_DNS_AUTH_CFG.

IWAY_CERTBOT_DNS_AUTH_CFG=/etc/my-config.yml

The file have to contain a account section with

- username - customer number or person username
- password - password

Further it can contain a logging section with:

- syslog - enable Syslog (default false)
- level - log level (default "INFO")
- address - Syslog address (default /dev/log)
- facility - Syslog facility (default local0)
- format - log format (default
"%(asctime)s %(levelname)s %(name)s: %(message)s")

Example /etc/iway-certbot-dns-auth.yml:

account:
username: 12345
password: 'changeme'
logging:
syslog: true

Usage

Create a new cert for your domain my-domain.com with:

certbot \
certonly \
--email me@gmail.com \
--no-eff-email \
--agree-tos \
--preferred-challenges dns \
--manual \
--manual-auth-hook /usr/local/bin/iway-certbot-auth-hook \
--manual-cleanup-hook /usr/local/bin/iway-certbot-cleanup-hook \
--domain my-domain.com

Renew cert with:

certbot renew

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iway_certbot_dns_auth-0.2.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iway_certbot_dns_auth-0.2.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file iway_certbot_dns_auth-0.2.1.tar.gz.

File metadata

  • Download URL: iway_certbot_dns_auth-0.2.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.8.18 Linux/6.14.2-061402-generic

File hashes

Hashes for iway_certbot_dns_auth-0.2.1.tar.gz
Algorithm Hash digest
SHA256 39c5378e293b4dec8bb2bf5a4bc2180c3d280c04db09d1ed139cb8f2e1ed188f
MD5 f3dde862d88a385570b52cdd2cabcf72
BLAKE2b-256 67428c9e339e7e357b28d00ea45b28110d393f3cef23c624cd89fee30c2ae6ca

See more details on using hashes here.

File details

Details for the file iway_certbot_dns_auth-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: iway_certbot_dns_auth-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.8.18 Linux/6.14.2-061402-generic

File hashes

Hashes for iway_certbot_dns_auth-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 155311dc9c5a79a01f1db322f1a78f22190e7e647f01d0097faf9c48ec1cd3ef
MD5 1d37c256f17ca65e2501fd3325a9925e
BLAKE2b-256 1b4ab2bca04b8cfa7d24bac8d74573266a04a8c90e314d0a917b67feb022858b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page