Skip to main content

Certbot DNS-Myracloud Authenticator Plugin

This GitHub repository is a read-only mirror. Development happens internally at Myra Security. Issues and pull requests opened here are not monitored. To report a security vulnerability, please follow SECURITY.md.

The Certbot DNS-Myracloud Authenticator Plugin facilitates the procurement of SSL/TLS certificates from Let's Encrypt utilizing the DNS-01 challenge methodology in conjunction with Myracloud as the designated DNS service provider. This document elucidates the procedural steps for the installation and operational utilization of this plugin.

The plugin talks to the Myracloud v2 API (apiv2.myracloud.com). The credentials' service account must have access to the domain (zone) for which the certificate is requested; the plugin resolves the zone's numeric domain id and owning organization automatically. The retired v1 API (api.myracloud.com/en/rapi) is no longer used.

Installation

To initialize the Certbot DNS-Myracloud Authenticator Plugin, deploy the following pip command:

pip install certbot-dns-myracloud

Plugin Usage

Upon successful integration of the plugin, it becomes viable to employ it with Certbot for the retrieval of SSL/TLS certificates. The subsequent section delineates the pertinent arguments and their respective examples:

Arguments

Argument Example Value Description
--authenticator dns-myracloud Engages the Myracloud authenticator mechanism. This must be configured as dns-myracloud. (Mandatory)
--dns-myracloud-credentials ./credentials.ini Denotes the directory path to the credentials file for Myracloud DNS. This document must encapsulate the dns_myracloud_auth_token and dns_myracloud_auth_secret variables. (Mandatory)
--dns-myracloud-propagation-seconds 900 Configures the delay prior to initiating the DNS record query. A 900-second interval (equivalent to 15 minutes) is recommended. (Default: 900)

Example

Below is a structured example detailing the application of Certbot in conjunction with the DNS-Myracloud Authenticator Plugin to retrieve a certificate:

# prepare environment
python3 -m venv e
. e/bin/activate

# install myracloud DNS authenticator
pip install certbot-dns-myracloud

# do not forget to have proper permissions set on your credentials.ini,
# like chmod 400 <path_to_credentials.ini>
# the auto

# retrieve cert
certbot certonly \
  --authenticator dns-myracloud \
  --dns-myracloud-credentials ./path_to_credentials.ini \
  --dns-myracloud-propagation-seconds 180 \
  --server https://acme-v02.api.letsencrypt.org/directory \
  --agree-tos \
  --elliptic-curve secp384r1 \
  --preferred-challenges dns \
  -d 'example.com' \
  -d '*.example.com'

For this example, example.com represents the designated domain (zone) for certificate procurement.

Obtaining your credentials (API Key)

The plugin authenticates with the Myracloud v2 API using an API Key, which consists of a token (the key identifier) and a secret. Create one in the Myra application under:

Personal Account → API Access → API Keys

Add a new API Key there. When it is created you are shown the token and the secret — copy both immediately, as the secret is only displayed once. The account that owns the API Key must have access to the domain (zone) for which you request the certificate, with permission to create DNS records.

Example of credentials.ini

To operationalize the plugin, it's imperative to curate a credentials.ini file encompassing your Myracloud DNS credentials:

dns_myracloud_auth_token = "your_token_here"
dns_myracloud_auth_secret = "your_secret_here"

Replace your_token_here and your_secret_here with the token and secret of the API Key created above (Personal Account → API Access → API Keys). The account that owns the API Key must have permission to create DNS records in the target zone.

Metadata

Release files for certbot-dns-myracloud 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certbot-dns-myracloud 0.2.2
File Size Uploaded
certbot_dns_myracloud-0.2.2.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-myracloud 0.2.2
File Interpreter ABI Platform
certbot_dns_myracloud-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / certbot_dns_myracloud-0.2.2.tar.gz

Download URL certbot_dns_myracloud-0.2.2.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
88f264bcc42c8a6a0d0c0be54741aa18fb198d96b5b11b4f9accac3ff501a15b
BLAKE2b-256 checksum
How to use checksums
40347b36083c95604e2a1ea343422787ef32fa0b95d51225f72eaa9dd1939eb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / certbot_dns_myracloud-0.2.2-py3-none-any.whl

Download URL certbot_dns_myracloud-0.2.2-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91891f7a43a9a15d895dadd667c961dafc7c8b6071ab191c96b045c836f701c1
BLAKE2b-256 checksum
How to use checksums
4061b73ed0bc091e847e2cef2ad6fe8d44cd58df304bdfbcd0e9471312c0a410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page