letsencrypt.plugins.standalone¶
Standalone Authenticator.
-
class
letsencrypt.plugins.standalone.ServerManager(certs, http_01_resources)[source]¶ Bases:
objectStandalone servers manager.
Manager for
ACMEServerandACMETLSServerinstances.certsandhttp_01_resourcescorrespond toacme.crypto_util.SSLSocket.certsandacme.crypto_util.SSLSocket.http_01_resourcesrespectively. 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!-
class
_Instance(server, thread)¶ Bases:
tuple-
_asdict()¶ Return a new OrderedDict which maps field names to their values
-
classmethod
_make(iterable, new=<built-in method __new__ of type object at 0x9192c0>, len=<built-in function len>)¶ Make a new _Instance object from a sequence or iterable
-
_replace(_self, **kwds)¶ Return a new _Instance object replacing specified fields with new values
-
server¶ Alias for field number 0
-
thread¶ Alias for field number 1
-
-
ServerManager.run(port, challenge_type)[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.HTTP01oracme.challenges.TLSSNI01.
Returns: Server instance.
Return type: ACMEServerMixin
-
class
-
letsencrypt.plugins.standalone.supported_challenges_validator(data)[source]¶ Supported challenges validator for the
argparse.It should be passed as
typeargument toadd_argument.
-
class
letsencrypt.plugins.standalone.Authenticator(*args, **kwargs)[source]¶ Bases:
letsencrypt.plugins.common.PluginStandalone 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.
-