Need help exporting a X.509 public key

  • Thread starter Thread starter kuhnto
  • Start date Start date
K

kuhnto

I am trying to find a way to export the public key in an X.509 format
from the MY store on our CE device. I currently import a .PFX which
contains the CA, private key and public key. I would like to get the
public key exported so a user can download it, and put it on another
machine as part of our TLS communication.

I have looked into the CryptExportPublicKeyInfoEx() but it only seems
good for exporting for transport to another system just to be imported
again. I would like to do almost the same thing, but be able to
export it as a x.509.

Certificates are still very confusing for me, and any help would be
greatly appreciated.

Tom
 
Tom,

Have you looked at the System.Security.Cryptography.X509Certificate class? I
haven't worked with it myself (although I have use RsaCryptoServiceProvider
class to import and export key blobs) but it looks like it might be a good
place to start, and most of its members are supported by the Compact
Framework.
 
Tom,

Have you looked at the System.Security.Cryptography.X509Certificate class? I
haven't worked with it myself (although I have use RsaCryptoServiceProvider
class to import and export key blobs) but it looks like it might be a good
place to start, and most of its members are supported by the Compact
Framework.

Thanks...

I will look into it
 
Back
Top