20 Feb
2022
20 Feb
'22
5:29 a.m.
# extract fingerprint ssl_obj = session.transport._asyncio_transport.get_extra_info('ssl_object') der_cert = ssl_obj.getpeercert(True) pem_cert = ssl.DER_cert_to_PEM_cert(der_cert) cert_print = hashlib.sha256(der_cert).hexdigest()