MCPcopy Index your code
hub / github.com/python/cpython / get_unverified_chain

Method get_unverified_chain

Lib/ssl.py:902–911  ·  view source on GitHub ↗

Returns raw certificate chain provided by the other end of the SSL channel as a list of DER-encoded bytes.

(self)

Source from the content-addressed store, hash-verified

900 return [cert.public_bytes(_ssl.ENCODING_DER) for cert in chain]
901
902 def get_unverified_chain(self):
903 """Returns raw certificate chain provided by the other
904 end of the SSL channel as a list of DER-encoded bytes.
905 """
906 chain = self._sslobj.get_unverified_chain()
907
908 if chain is None:
909 return []
910
911 return [cert.public_bytes(_ssl.ENCODING_DER) for cert in chain]
912
913 def selected_npn_protocol(self):
914 """Return the currently selected NPN protocol as a string, or ``None``

Callers 4

get_unverified_chainMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by 3

runMethod · 0.36