Urgent .net compact framework x509certificate2

Mar 25 2011 6:31 AM

Hi All,

The .net compact framework 3.5 does not support getting the private key from x509certificate2.

I need to get the private key from x509certificate2 in .net compact framework.

If i have TestCert.pfx file. How can I extract the private key by using this

The .net framework 3.5 X509Certificate2 will support only 2 inputs as below.

new X509Certificate2( byte[] RawData ) or X509Certificate2( IntPtr Handle )

So we can't input the .pfx file directly.

My requiremnt is to get the private key from X509Certificate2 certificate in the .net compact framework. password.

Answers (1)