module documentation

Undocumented

Class PEMObjects A collection of objects loaded from a collection of PEM-encoded files.
Class SNIConnectionCreator (Private) IOpenSSLServerConnectionCreator implementation that creates an OpenSSL connection with a context that will switch to the appropriate one.
Class TLSServerEndpoint A wrapper IStreamServerEndpoint that can run TLS over an arbitrary other IStreamServerEndpoint (most commonly, TCP).
Function autoReloadingDirectoryOfPEMs Construct a callable that can look up a HTTPS certificate based on their DNS names, by inspecting a directory full of PEM objects. When encountering a lookup failure, the directory will be reloaded, so that if new certificates are added they will be picked up.
Function lookupWithWildcard Look up an OpenSSL context for the given domain name, or construct a default one suitable for bootstrapping the connection.
Variable log Undocumented
Function _getSubjectAltNames Get all the DNSName SANs for a given certificate.
def autoReloadingDirectoryOfPEMs(path: FilePath[str]) -> Callable[[(bytes | None)], Context | None]: (source)

Construct a callable that can look up a HTTPS certificate based on their DNS names, by inspecting a directory full of PEM objects. When encountering a lookup failure, the directory will be reloaded, so that if new certificates are added they will be picked up.

def lookupWithWildcard(flatLookup: Callable[[(bytes | None)], Context | None], name: bytes | None) -> Context | None: (source)

Look up an OpenSSL context for the given domain name, or construct a default one suitable for bootstrapping the connection.

Undocumented

def _getSubjectAltNames(c: Certificate) -> list[str]: (source)

Get all the DNSName SANs for a given certificate.