Welcome to certbot_dns_gcore’s documentation!
The certbot_dns_gcore plugin automates the process of
completing a dns-01 challenge (acme.challenges.DNS01) by creating, and
subsequently removing, TXT records using the G-Core DNS API.
Note
The plugin is not installed by default. It can be installed by command below.
pip install certbot-dns-gcore
Named Arguments
|
G-Core credentials INI file. (Required) |
|
The number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (Default: 10) |
Credentials
Use of this plugin requires a configuration file containing G-Core DNS API credentials. You can use G-Core API Token, obtained from your profile panel or use G-Core Authentication credentials (email and password) for login page.
G-Core API Token is recommended authentication option.
The token needed by Certbot for add temporary TXT record to zone what you need certificates for.
# G-Core API token used by Certbot
dns_gcore_apitoken = 0123456789abcdef0123456789abcdef01234567
# G-Core API credentials used by Certbot
dns_gcore_email = gcore_user@example.com
dns_gcore_password = 0123456789abcdef0123456789abcdef01234
The path to this file can be provided interactively or using the
--dns-gcore-credentials command-line argument. Certbot records the path
to this file for use during renewal, but does not store the file’s contents.
Caution
You should protect these API credentials as you would the password to your
G-Core account. Users who can read this file can use these credentials
to issue arbitrary API calls on your behalf. Users who can cause Certbot to
run using these credentials can complete a dns-01 challenge to acquire
new certificates or revoke existing certificates for associated domains,
even if those domains aren’t being managed by this server.
Certbot will emit a warning if it detects that the credentials file can be
accessed by other users on your system. The warning reads “Unsafe permissions
on credentials configuration file”, followed by the path to the credentials
file. This warning will be emitted each time Certbot uses the credentials file,
including for renewal, and cannot be silenced except by addressing the issue
(e.g., by using a command like chmod 600 to restrict access to the file).
Also you can specify the G-Core auth and dns urls.
# G-Core API credentials used by Certbot
dns_gcore_auth_url = https://auth.example.com
dns_gcore_api_url = https://dns_api.example.com
Examples
example.comcertbot certonly \
--authenticator dns-gcore \
--dns-gcore-credentials=./gcore.ini \
-d 'example.com'
example.com, waiting 60 seconds
for DNS propagationcertbot certonly \
--authenticator dns-gcore \
--dns-gcore-credentials=./gcore.ini \
--dns-gcore-propagation-seconds=60 \
-d 'example.com'