开发者

split a PKCS12 into its certificate and private key bytes

开发者 https://www.devze.com 2023-03-10 05:57 出处:网络
I have been able to OpenSSL tools to extract the certificate and private key bytes from an existing PFX (PKCS12) file.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消