I have a .der certificate that is binary encoded which needs to be converted to a .pem file programatically in .net
This line gives the correct output using OpenSSL on OSX:
openssl x509 -inform der -in cert.crt -out cert.pem
But we need to do the same in .net
We have tried many solutions but are completely stuck.
Would something like this work:
var oc = OpenSSL.X509.X509Certificate.FromDER(bio);
Any advice very welcome :)