Obtain certificates using a DNS TXT record for DuckDNS domains
Project description
Certbot DNS DuckDNS Plugin
Plugin for certbot for a DNS-01 challenge with a DuckDNS domain.
Table of Contents
About
certbot_dn_duckdns is a plugin for certbot to create the DNS-01 challenge for a DuckDNS domain. The plugin takes care of setting and deleting the TXT entry via the DuckDNS API.
Installation
With pip (recommend)
Use the following command to install certbot_dns_duckdns with pip:
pip3 install certbot_dns_duckdns
You can also very easily update to a newer version:
pip3 install certbot_dns_duckdns -U
From source
git clone https://github.com/infinityofspace/certbot_dns_duckdns
cd certbot_dns_duckdns
pip install .
Usage
Make sure before you start that you have a current version of certbot installed. You can read how to install certbot in the official documentation.
Note: Normally, the PYPI version of certbot is installed with the installation of certbot_dns_duckdns and does not require any further installation or configuration.
You can check if certbot is installed with:
certbot --version
Below are some examples of how to use the plugin:
Generate a certificate for a DNS-01 challenge of the domain "example.duckdns.org":
certbot certonly \
--non-interactive \
--agree-tos \
--email <your-email> \
--preferred-challenges dns \
--authenticator dns-duckdns \
--dns-duckdns-token <your-duckdns-token> \
--dns-duckdns-propagation-seconds 60 \
-d "example.duckdns.org"
Generate a wildcard certificate for a DNS-01 challenge of all subdomains "*.example.duckdns.org":
certbot certonly \
--non-interactive \
--agree-tos \
--email <your-email> \
--preferred-challenges dns \
--authenticator dns-duckdns \
--dns-duckdns-token <your-duckdns-token> \
--dns-duckdns-propagation-seconds 60 \
-d "*.example.duckdns.org"
Generate a certificate for a DNS-01 challenge of the domain "example.duckdns.org" without an account (i.e. without an email address):
certbot certonly \
--non-interactive \
--agree-tos \
--register-unsafely-without-email \
--preferred-challenges dns \
--authenticator dns-duckdns \
--dns-duckdns-token <your-duckdns-token> \
--dns-duckdns-propagation-seconds 60 \
-d "example.duckdns.org"
Generate a staging certificate (i.e. temporary testing certificate) for a DNS-01 challenge of the domain " example.duckdns.org":
certbot certonly \
--non-interactive \
--agree-tos \
--email <your-email> \
--preferred-challenges dns \
--authenticator dns-duckdns \
--dns-duckdns-token <your-duckdns-token> \
--dns-duckdns-propagation-seconds 60 \
-d "example.duckdns.org" \
--dry-run
You can find al list of all available cli options in the official documentation of certbot.
Third party notices
All modules used by this project are listed below:
Name | License |
---|---|
certbot | Apache 2.0 |
requests | Apache 2.0 |
zope.interface | ZPL-2.1 |
setuptools | MIT |
Furthermore, this readme file contains embeddings of Shields.io.
License
MIT - Copyright (c) 2021 Marvin Heptner
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
Hashes for certbot_dns_duckdns-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c0aef29df73922fd05c3deefd234cf4ff6abd135e9d1a65d6fb305a5dd15cd |
|
MD5 | 03d422fc10e07e9c0d19ac0078a491f9 |
|
BLAKE2b-256 | f463aa5852554bd8089305ad580867aaaeae21703ab3340ca90c775ae6f9a988 |