google / certificate-transparency

Auditing for TLS certificates.
https://certificate.transparency.dev
Apache License 2.0
869 stars 283 forks source link

Python: Export the TBSCertificate #1355

Closed eranmes closed 7 years ago

eranmes commented 7 years ago

Add a method to export the TBSCertificate part of the certificate.

In RFC6962-bis, the signature in the SCT for X.509 certs does not cover the entire certificate, but the TBSCertificate and the issuer key hash.

To implement issuance of V2 SCTs, access to the TBSCertificate is necessary.

eranmes commented 7 years ago

@RJPercival PTAL