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

Method getpeercert

Lib/ssl.py:879–886  ·  view source on GitHub ↗

Returns a formatted version of the data in the certificate provided by the other end of the SSL channel. Return None if no certificate was provided, {} if a certificate was provided, but not validated.

(self, binary_form=False)

Source from the content-addressed store, hash-verified

877 return self._sslobj.write(data)
878
879 def getpeercert(self, binary_form=False):
880 """Returns a formatted version of the data in the certificate provided
881 by the other end of the SSL channel.
882
883 Return None if no certificate was provided, {} if a certificate was
884 provided, but not validated.
885 """
886 return self._sslobj.getpeercert(binary_form)
887
888 def get_verified_chain(self):
889 """Returns verified certificate chain provided by the other

Callers 15

getpeercertMethod · 0.45
get_server_certificateFunction · 0.45
test_connectMethod · 0.45
test_connect_exMethod · 0.45
test_connect_capathMethod · 0.45
test_connect_cadataMethod · 0.45
test_bio_handshakeMethod · 0.45
wrap_connMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_connectMethod · 0.36
test_connect_exMethod · 0.36
test_connect_capathMethod · 0.36
test_connect_cadataMethod · 0.36
test_bio_handshakeMethod · 0.36
wrap_connMethod · 0.36
runMethod · 0.36
server_params_testFunction · 0.36
test_getpeercertMethod · 0.36