Standalone¶
Support for standalone client challenge solvers.
- class acme.standalone.BaseDualNetworkedServers(ServerClass: Type[TCPServer], server_address: Tuple[str, int], *remaining_args: Any, **kwargs: Any)[source]¶
Base class for a pair of IPv6 and IPv4 servers that tries to do everything it’s asked for both servers, but where failures in one server don’t affect the other.
If two servers are instantiated, they will serve on the same port.
- class acme.standalone.TLSALPN01Server(server_address: Tuple[str, int], certs: List[Tuple[PKey, X509]], challenge_certs: Mapping[bytes, Tuple[PKey, X509]], ipv6: bool = False)[source]¶
TLSALPN01 Server.
- class acme.standalone.HTTP01Server(server_address: Tuple[str, int], resources: Set[HTTP01], ipv6: bool = False, timeout: int = 30)[source]¶
HTTP01 Server.
- class acme.standalone.HTTP01DualNetworkedServers(*args: Any, **kwargs: Any)[source]¶
HTTP01Server Wrapper. Tries everything for both. Failures for one don’t affect the other.
- class acme.standalone.HTTP01RequestHandler(*args: Any, **kwargs: Any)[source]¶
HTTP01 challenge handler.
Adheres to the stdlib’s
socketserver.BaseRequestHandler
interface.- Variables
simple_http_resources (set) – A set of
HTTP01Resource
objects. TODO: better name?
- class HTTP01Resource(chall, response, validation)¶
- chall¶
Alias for field number 0
- response¶
Alias for field number 1
- validation¶
Alias for field number 2
- property timeout: int¶
The default timeout this server should apply to requests. :return: timeout to apply :rtype: int
- classmethod partial_init(simple_http_resources: Set[HTTP01], timeout: int) partial[HTTP01RequestHandler] [source]¶
Partially initialize this handler.
This is useful because
socketserver.BaseServer
takes uninitialized handler and initializes it with the current request.