A Synergy Wholesale DNS plugin for Cerbot to authenticate and retrieve Lets Encrypt certificates
Project description
certbot-dns-synergy-wholesale
A Synergy Wholesale DNS plugin for Certbot to authenticate and retrieve Lets Encrypt certificates. Automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records
Installation
# create a virtual environment, to avoid conflicts
python3 -m venv /some/path
# activate the virtual environment
source /some/path/bin/activate
# use the pip in the virtual environment to install or update
/some/path/bin/pip install -U certbot-dns-synergy-wholesale
# use the cerbot from the virtualenv, to avoid accidentally
# using one from a different environment that does not have this library
/some/path/bin/certbot
Named Arguments
To start using DNS authentication for Synergy Wholesale, pass the following arguments on certbot's command line:
| Option | Description |
|---|---|
--authenticator dns-synergy-wholesale |
select the authenticator plugin (Required) |
--dns-synergy-wholesale-credentials FILE |
credentials INI file. (Required) |
--dns-synergy-wholesale-propagation-seconds N |
seconds to wait for DNS propagation (default: 30) |
Credentials
Use of this plugin requires a configuration file containing API credentials, obtained from your manage.synergywholesale.com.
Warning: You must whitelist the IP address from where certbot will run, Otherwise you'll run into API errors.
Remember this file will need to have 600 permissions.
An example credentials.ini file:
dns_synergy_wholesale_reseller_id = 1
dns_synergy_wholesale_api_key = abc123
Examples
To acquire a single certificate for both example.com and *.example.com
certbot certonly \
--authenticator dns-synergy-wholesale \
--dns-synergy-wholesale-credentials /path/to/credentials.ini \
-d 'example.com' \
-d '*.example.com'
You can also add addtional paramaters such as --keep-until-expiring --non-interactive --expand for automation. More information here
You may also set the DNS propagation wait time (in seconds) with the --dns-synergy-wholesale-propagation-seconds argument. This controls how long Certbot waits after creating the DNS TXT record before proceeding. Increase this value if your DNS provider is slow to update records.
Docker
You can build a docker image from source using the included Dockerfile or pull the latest version directly from Docker Hub:
docker pull alamellama/certbot-dns-synergy-wholesale
Once that's finished, the application can be run as follows:
docker run --rm \
-v /var/lib/letsencrypt:/var/lib/letsencrypt \
-v /etc/letsencrypt:/etc/letsencrypt \
--cap-drop=all \
alamellama/certbot-dns-synergy-wholesale certbot certonly \
--authenticator dns-synergy-wholesale \
--dns-synergy-wholesale-credentials /var/lib/letsencrypt/credentials.ini \
--keep-until-expiring --non-interactive --expand \
--server https://acme-v02.api.letsencrypt.org/directory \
--agree-tos --email "webmaster@example.com" \
-d example.com -d '*.example.com'
You may want to change the volumes /var/lib/letsencrypt and /etc/letsencrypt to local directories where the certificates and configuration should be stored.
Dev Setup
# Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install uv (if not already installed)
pip install uv
# Install all dependencies using the lockfile
uv sync --dev
Testing
This project includes unit tests that mock external services (Certbot and the Synergy Wholesale SOAP API) so they run quickly and offline.
pytest -q
Linting
This project uses ruff for linting. To run it, use:
ruff check . --fix
ruff format .
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
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 certbot_dns_synergy_wholesale-2.0.1.tar.gz.
File metadata
- Download URL: certbot_dns_synergy_wholesale-2.0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f444a5bc9459610e73b616348ed88d85070084115e8cf80d1c82b6b6c125d8d
|
|
| MD5 |
8648bed66826ec88915da0604ae96689
|
|
| BLAKE2b-256 |
8c626cafc129678fcb3e6c90a98c7672653985163a4197fc9c6f0fa9e9dfad04
|
Provenance
The following attestation bundles were made for certbot_dns_synergy_wholesale-2.0.1.tar.gz:
Publisher:
python-publish.yml on ALameLlama/certbot-dns-synergy-wholesale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_synergy_wholesale-2.0.1.tar.gz -
Subject digest:
2f444a5bc9459610e73b616348ed88d85070084115e8cf80d1c82b6b6c125d8d - Sigstore transparency entry: 545041956
- Sigstore integration time:
-
Permalink:
ALameLlama/certbot-dns-synergy-wholesale@bd428ae0d7155d2b8b9ab6c152d8456ef2b0e732 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/ALameLlama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bd428ae0d7155d2b8b9ab6c152d8456ef2b0e732 -
Trigger Event:
release
-
Statement type:
File details
Details for the file certbot_dns_synergy_wholesale-2.0.1-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_synergy_wholesale-2.0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0541e9781ba1a80e669d40b0fc17482d668a0e77a045fccf785d498047e736d9
|
|
| MD5 |
05902afb72be6a9f96cdb2ae82faa48f
|
|
| BLAKE2b-256 |
ae57e99fb719665ceb4a4e853ca797a8508e69599771736e5736ef4aead08e8a
|
Provenance
The following attestation bundles were made for certbot_dns_synergy_wholesale-2.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on ALameLlama/certbot-dns-synergy-wholesale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_synergy_wholesale-2.0.1-py3-none-any.whl -
Subject digest:
0541e9781ba1a80e669d40b0fc17482d668a0e77a045fccf785d498047e736d9 - Sigstore transparency entry: 545041958
- Sigstore integration time:
-
Permalink:
ALameLlama/certbot-dns-synergy-wholesale@bd428ae0d7155d2b8b9ab6c152d8456ef2b0e732 -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/ALameLlama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bd428ae0d7155d2b8b9ab6c152d8456ef2b0e732 -
Trigger Event:
release
-
Statement type: