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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c5378e293b4dec8bb2bf5a4bc2180c3d280c04db09d1ed139cb8f2e1ed188f
|
|
| MD5 |
f3dde862d88a385570b52cdd2cabcf72
|
|
| BLAKE2b-256 |
67428c9e339e7e357b28d00ea45b28110d393f3cef23c624cd89fee30c2ae6ca
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155311dc9c5a79a01f1db322f1a78f22190e7e647f01d0097faf9c48ec1cd3ef
|
|
| MD5 |
1d37c256f17ca65e2501fd3325a9925e
|
|
| BLAKE2b-256 |
1b4ab2bca04b8cfa7d24bac8d74573266a04a8c90e314d0a917b67feb022858b
|