toolrack.certificate¶
Utility functions for SSL/TSL certificate handling.
-
toolrack.certificate.
get_host_certificate
(uri: str, get_func: Callable[[Tuple[str, int]], str] = <function get_server_certificate>) → str¶ Return a string with the host certificate.
Parameters: uri (str) – the host URI, in the form [scheme://]host[:port]
. The scheme is optional (and ignored), and port defaults to 443.