split a PKCS12 into its certificate and private key bytes
I have been able to OpenSSL tools to extract the certificate and private key bytes from an existing PFX (PKCS12) file.
However, I wish to do this using .NET. I am able to use the X509Certificate classes to load a PFX file and extract the certificate bytes but, I do not know how to extract the private key. The certificate (exported as a PFX file) was created using a sha1RSA aignature algorithm.
I know RSA classes exist in .NET bu开发者_运维问答t I do not know how to use them together.
Any advice will help.
Thanks in advance.
Subbu
See my answer here: extract private key bytes in C#
Does this work for you?
精彩评论