Obtain certificates using a DNS TXT record for MyOnlinePortal.net domains
Project description
certbot-dns-myonlineportal
MyOnlinePortal DNS Authenticator plugin for Certbot.
This plugin is built from the ground up and follows the development style and life-cycle
of other certbot-dns-*
plugins found in the
Official Certbot Repository.
Installation
pip install --upgrade certbot
pip install certbot-dns-myonlineportal
Verify:
$ certbot plugins --text
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* dns-myonlineportal
Description: Obtain certificates using a DNS TXT record (if you are using
MyOnlinePortal for DNS).
Interfaces: Authenticator, Plugin
Entry point: dns-myonlineportal =
certbot_dns_myonlineportal.dns_myonlineportal:Authenticator
...
...
Configuration
The credentials file e.g. ~/myonlineportal-credentials.ini
should look like this:
certbot_dns_myonlineportal:dns_myonlineportal_username = username
certbot_dns_myonlineportal:dns_myonlineportal_password = password
certbot_dns_myonlineportal:dns_myonlineportal_endpoint = https://myonlineportal.net/set-acme
Usage
certbot ... \
--authenticator certbot-dns-myonlineportal:dns-myonlineportal \
--certbot-dns-myonlineportal:dns-myonlineportal-propagation-seconds 90 \
--certbot-dns-myonlineportal:dns-myonlineportal-credentials ~/myonlineportal-credentials.ini \
certonly
Development
Build the docker container
docker build -t certbot/dns-myonlineportal .
Run the docker container
mkdir -p ./var/lib/letsencrypt
mkdir -p ./var/log/letsencrypt
mkdir -p ./etc/letsencrypt
PWD=$(pwd)
docker run \
--rm \
-v ${PWD}/var/lib/letsencrypt:/var/lib/letsencrypt \
-v ${PWD}/var/log/letsencrypt:/var/log/letsencrypt \
-v ${PWD}/etc/letsencrypt:/etc/letsencrypt \
--cap-drop=all \
certbot/dns-myonlineportal certonly --debug \
--authenticator certbot-dns-myonlineportal:dns-myonlineportal \
--certbot-dns-myonlineportal:dns-myonlineportal-propagation-seconds 90 \
--certbot-dns-myonlineportal:dns-myonlineportal-credentials ~/myonlineportal-credentials.ini \
--no-self-upgrade \
--agree-tos \
--email 'my.email@example.com' \
--keep-until-expiring --non-interactive --expand \
--server https://acme-v02.api.letsencrypt.org/directory \
-d example.myonlineportal.net -d '*.example.myonlineportal.net'
Run the tests
python3 setup.py test
Build the package
python3 -m build
Upload to pypi
python3 -m twine upload --repository testpypi dist/*
Helpful links
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
Close
Hashes for certbot_dns_myonlineportal-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2f6e99f6438bdd53e863a76e52d3b97f5770af1e7a2c130ce2f1b8c7a2e3df |
|
MD5 | e2454a9f041864da4672e191d78946fc |
|
BLAKE2b-256 | d1b048dc7107ae4da15301251fe06d60e2895dd2bf9af1d19d42a3aa5d35f910 |
Close
Hashes for certbot_dns_myonlineportal-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092a191c8161cccb69f65b41fc57674fcd9feaed6b3228157f001b41287e626b |
|
MD5 | 91d6fa6314e02e02f0ebb6c5b8bb0f5e |
|
BLAKE2b-256 | 3a40d07b6084dec457f64ad271e0511c2de8c4097822a4ba494a8e2115b04e17 |