certbot_dns_alwaysdata.dns_alwaysdata
¶
DNS Authenticator for Alwaysdata.
-
class
certbot_dns_alwaysdata.dns_alwaysdata.
Authenticator
(*args, **kwargs)[source]¶ Bases:
certbot.plugins.dns_common.DNSAuthenticator
DNS Authenticator for Alwaysdata
This Authenticator uses the Alwaysdata API to fulfill a dns-01 challenge.
-
class
certbot_dns_alwaysdata.dns_alwaysdata.
_AlwaysdataClient
(api_key, account)[source]¶ Bases:
object
Encapsulates all communication with Alwaysdata API.
-
classmethod
canonical_record_name
(record_name, domain_name)[source]¶ Strip the domain name from the record name, as Alwaysdata expects name
foo.bar
when adding thefoo.bar.domain.com
record.Parameters:
-
add_txt_record
(domain, record_name, record_content, record_ttl)[source]¶ Add a TXT record using the supplied information.
Parameters: - domain (str) – The domain to use to look up the managed zone.
- record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
- record_ttl (int) – The record TTL (number of seconds that the record may be cached).
Raises: certbot.errors.PluginError – if an error occurs communicating with the API
-
del_txt_record
(domain, record_name, record_content, record_ttl)[source]¶ Delete a TXT record using the supplied information.
Parameters: - domain (str) – The domain to use to look up the managed zone.
- record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
- record_ttl (int) – The record TTL (number of seconds that the record may be cached).
-
_find_alwaysdata_domain
(domain_name)[source]¶ Find the Alwaysdata domain for a given domain name.
Parameters: domain_name (str) – The domain name for which to find the Alwaysdata domain. Returns: The domain name and domain ID, if found. Return type: tuple(str, str) Raises: certbot.errors.PluginError – if the domain cannot be found.
-
classmethod