add Certificate.from_pem and Certificate.from_der#387
add Certificate.from_pem and Certificate.from_der#387Aurvandill wants to merge 3 commits intorustls:mainfrom Aurvandill:main
Conversation
|
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? |
|
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 |
|
thanks for the info. |
This adds the two requested functions from #274.