certbot_apache.tls_sni_01
¶
A class that performs TLS-SNI-01 challenges for Apache
-
class
certbot_apache.tls_sni_01.
ApacheTlsSni01
(*args, **kwargs)[source]¶ Bases:
certbot.plugins.common.TLSSNI01
Class that performs TLS-SNI-01 challenges within the Apache configurator
Variables: - configurator – ApacheConfigurator object
- achalls (list) – Annotated TLS-SNI-01
(
KeyAuthorizationAnnotatedChallenge
) challenges.
Parameters: - indices (list) – Meant to hold indices of challenges in a larger array. ApacheTlsSni01 is capable of solving many challenges at once which causes an indexing issue within ApacheConfigurator who must return all responses in order. Imagine ApacheConfigurator maintaining state about where all of the http-01 Challenges, TLS-SNI-01 Challenges belong in the response array. This is an optional utility.
- challenge_conf (str) – location of the challenge config file
-
_mod_config
()[source]¶ Modifies Apache config files to include challenge vhosts.
Result: Apache config includes virtual servers for issued challs
Returns: All TLS-SNI-01 addresses used Return type: set
-
_get_config_text
(achall, ip_addrs)[source]¶ Chocolate virtual server configuration text
Parameters: - achall (KeyAuthorizationAnnotatedChallenge) – Annotated TLS-SNI-01 challenge.
- ip_addrs (list) – addresses of challenged domain
list
of typeAddr
Returns: virtual host configuration text
Return type: str