(Re-?)expose bytes in TbsCertificate to gain access to raw data
As I see it, there is currently no way to serialize the parsed X509 back into bytes. There was a pull request in the past to do that, but the bytes function no longer exists for the TbsCertificate struct.
Hi, It seems you are mentioning two different issues: having access to the raw bytes, and wanting to serialize the certificate. Could you provide more details? There are no immediate plans to implement serialization (though this would be nice to have)
The TbsCertificate object implements AsRef<[u8]> to get the original bytes back, but that doesn't include the certificate signature. See #217 for a request to get the raw bytes for the whole certificate.