MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / get_server_certificate

Function get_server_certificate

Lib/ssl.py:434–451  ·  view source on GitHub ↗

Retrieve the certificate from the server at the specified address, and return it as a PEM-encoded string. If 'ca_certs' is specified, validate the server cert against it. If 'ssl_version' is specified, use it in the connection attempt.

(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

wrap_socketFunction · 0.85
DER_cert_to_PEM_certFunction · 0.85
getpeercertMethod · 0.80
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected