Reg.ru DNS authenticator plugin for Certbot
Project description
certbot-dns-regru
Reg.ru DNS authenticator plugin for Certbot
English | Русский
An authenticator plugin for certbot to support Let's Encrypt DNS challenges (dns-01) for domains managed by the nameservers of Reg.ru.
Huge thanks to @free2er for creating initial version
Requirements
- certbot (>=0.21.1)
For older Ubuntu distributions check out this PPA: ppa:certbot/certbot
Installation
-
First install the plugin:
sudo pip install certbot-dns-regru -
Configure it with your Reg.ru Credentials:
sudo nano /etc/letsencrypt/regru.iniAdd provider configuration. It is strongly advised to use API password and not your regular password (can be set here)
dns_regru_username=<USERNAME> dns_regru_password=<PASSWORD>If you use reg.ru's service to manage external domains - no need to worry, plugin tries both plain domain and
"servtype":"srv_dns_both" -
Make sure the file is only readable by root! Otherwise all your domains might be in danger:
sudo chmod 0600 /etc/letsencrypt/regru.ini
Usage
Request new certificates via a certbot invocation like this (adjust paths as needed):
Linux:
sudo certbot certonly \
--authenticator dns-regru \
--dns-regru-credentials /etc/letsencrypt/regru.ini \
--dns-regru-propagation-seconds 180 \
-d sub.domain.tld -d '*.wildcard.tld'
Windows (PowerShell):
certbot certonly \
--authenticator dns-regru \
--dns-regru-credentials C:\path\to\regru.ini \
--dns-regru-propagation-seconds 180 \
-d sub.domain.tld -d '*.wildcard.tld'
- Note that shell might try to resolve wildcard subdomain (
*), you should put in in parentheses
Renewals will automatically be performed using the same authenticator and credentials by certbot.
See also certbot --help certbot-dns-regru for further information.
SWAG
To use this plugin with docker-swag you need to follow their guide
Add the following environment variables to your container:
DOCKER_MODS=linuxserver/mods:universal-package-install
INSTALL_PIP_PACKAGES=certbot-dns-regru
Then modify /config/dns-conf/regru.ini and provide credentials
Removal
sudo pip uninstall certbot-dns-regru
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_regru-1.1.1.tar.gz.
File metadata
- Download URL: certbot_dns_regru-1.1.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d2c4c6673bda9ae66fa062a3869ad917748320a81bffebda02f6fd0f3039012
|
|
| MD5 |
35ac25131c44fbb68c185e045d3fc9a0
|
|
| BLAKE2b-256 |
499b2a63e17b96208eb4aa6932c0909626c9a0a603b15d52e85e7f695f3c7cdd
|
File details
Details for the file certbot_dns_regru-1.1.1-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_regru-1.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0b8d538a95495da851bf77e201014240a4010ea5782515cb81c4e95de86d6a9
|
|
| MD5 |
409546be1f0f7a8be526429b506ed7c1
|
|
| BLAKE2b-256 |
82410fed16b8f02ef7482b7156353e81b5eca661ed112e3b660242192e16347b
|