certbot.plugins.standalone
¶
Standalone Authenticator.
-
class
certbot.plugins.standalone.
ServerManager
(certs, http_01_resources)[source]¶ Bases:
object
Standalone servers manager.
Manager for
ACMEServer
andACMETLSServer
instances.certs
andhttp_01_resources
correspond toacme.crypto_util.SSLSocket.certs
andacme.crypto_util.SSLSocket.http_01_resources
respectively. All created servers share the same certificates and resources, so if you’re running both TLS and non-TLS instances, HTTP01 handlers will serve the same URLs!-
run
(port, challenge_type, listenaddr='')[source]¶ Run ACME server on specified
port
.This method is idempotent, i.e. all calls with the same pair of
(port, challenge_type)
will reuse the same server.Parameters: - port (int) – Port to run the server on.
- challenge_type – Subclass of
acme.challenges.Challenge
, eitheracme.challenge.HTTP01
oracme.challenges.TLSSNI01
. - listenaddr (str) – (optional) The address to listen on. Defaults to all addrs.
Returns: DualNetworkedServers instance.
Return type: ACMEServerMixin
-
-
class
certbot.plugins.standalone.
SupportedChallengesAction
(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶ Bases:
argparse.Action
Action class for parsing standalone_supported_challenges.
-
_convert_and_validate
(data)[source]¶ Validate the value of supported challenges provided by the user.
References to “dvsni” are automatically converted to “tls-sni-01”.
Parameters: data (str) – comma delimited list of challenge types Returns: validated and converted list of challenge types Return type: str
-
-
class
certbot.plugins.standalone.
Authenticator
(*args, **kwargs)[source]¶ Bases:
certbot.plugins.common.Plugin
Standalone Authenticator.
This authenticator creates its own ephemeral TCP listener on the necessary port in order to respond to incoming tls-sni-01 and http-01 challenges from the certificate authority. Therefore, it does not rely on any existing server program.
-
supported_challenges
¶ Challenges supported by this plugin.
-