Need help exporting a X.509 public key

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
 
G

Ginny Caughey MVP

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.
 
K

kuhnto

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top