here's the code I drafted from the other thread:

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()

it looks like i'm hashing the der cert instead of the pem cert, so
i'll want to fix that, i think

Reply via email to