Returns raw certificate chain provided by the other end of the SSL channel as a list of DER-encoded bytes.
(self)
| 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`` |
no outgoing calls