Uh oh!
There was an error while loading. Please reload this page.
add Certificate.from_pem and Certificate.from_der - #387
Conversation
djc
commented
Oct 8, 2025
I don't think this makes sense. What are you trying to do that the 0.14.x API does not let you do today? |
Aurvandill
commented
Oct 8, 2025
I'm trying to read in a certificate which is pem encoded to sign something later on. I could use an |
It would have also been nice to be able to do something like let cert = Certificate::from_pem(pem_bytes);let(_, x509_cert) = X509Certificate::from_der(certificate.der())?;println!("{:?}", x509_cert.tbs_certificate.validity)Or is there perhaps another way to get |
Since 0.14, we no longer support getting a |
Aurvandill
commented
Oct 9, 2025
thanks for the info. |
This adds the two requested functions from #274.