Skip to main content

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

  1. First install the plugin:

    sudo pip install certbot-dns-regru
    
  2. Configure it with your Reg.ru Credentials:

    sudo nano /etc/letsencrypt/regru.ini
    

    Add 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>
    

    Does not work

    IF you have configured authentication via SSL certificates in API settings you need to specify path to key and certificate

    dns_regru_cert_path=/path/to/cert.pem
    dns_regru_key_path=/path/to/key.pem
    

    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"

  3. 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

certbot_dns_regru-1.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_regru-1.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_regru-1.1.0.tar.gz.

File metadata

  • Download URL: certbot_dns_regru-1.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for certbot_dns_regru-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d08bc586a1e4653ef4c8b8098f7e72fff6b4ad24bcfcdec59434203dd3c6f3dd
MD5 af9848fc279c4a9ca15fd1f57b4a7d7f
BLAKE2b-256 55ccfc347728f6a883bd857f0d9436e1c4d4c7a670eb3c34ca690f01f30cc1bb

See more details on using hashes here.

File details

Details for the file certbot_dns_regru-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_regru-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 362a7aa092b2d259d480696674d4ac151fcd5b539795219573ff5a87eaa97ef5
MD5 892f30991d38555208dc7c00fa18fab3
BLAKE2b-256 9b2a599940f73c2b678d9c192273653e5171daae283678dc1f708cc285d2335e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page