MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getpeercert

Method getpeercert

tools/python-3.11.9-amd64/Lib/ssl.py:932–939  ·  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

930 return self._sslobj.write(data)
931
932 def getpeercert(self, binary_form=False):
933 """Returns a formatted version of the data in the certificate provided
934 by the other end of the SSL channel.
935
936 Return None if no certificate was provided, {} if a certificate was
937 provided, but not validated.
938 """
939 return self._sslobj.getpeercert(binary_form)
940
941 def selected_npn_protocol(self):
942 """Return the currently selected NPN protocol as a string, or ``None``

Callers 2

getpeercertMethod · 0.45
get_server_certificateFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected