toolrack.certificate
Utility functions for SSL/TSL certificate handling.
- toolrack.certificate.get_host_certificate(uri, get_func=<function get_server_certificate>)
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.- Return type:
str