certbot_dns_digitalocean.dns_digitalocean
¶
DNS Authenticator for DigitalOcean.
-
class
certbot_dns_digitalocean.dns_digitalocean.
Authenticator
(*args, **kwargs)[source]¶ Bases:
certbot.plugins.dns_common.DNSAuthenticator
DNS Authenticator for DigitalOcean
This Authenticator uses the DigitalOcean API to fulfill a dns-01 challenge.
-
class
certbot_dns_digitalocean.dns_digitalocean.
_DigitalOceanClient
(token)[source]¶ Bases:
object
Encapsulates all communication with the DigitalOcean API.
-
add_txt_record
(domain_name, record_name, record_content)[source]¶ Add a TXT record using the supplied information.
Parameters: - domain_name (str) – The domain to use to associate the record with.
- record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
Raises: certbot.errors.PluginError – if an error occurs communicating with the DigitalOcean API
-
del_txt_record
(domain_name, record_name, record_content)[source]¶ Delete a TXT record using the supplied information.
Note that both the record’s name and content are used to ensure that similar records created concurrently (e.g., due to concurrent invocations of this plugin) are not deleted.
Failures are logged, but not raised.
Parameters: - domain_name (str) – The domain to use to associate the record with.
- record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
-