EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Extracting public key

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#510
Posted: 06/21/2006 13:56:22
by rsm  (Basic support level)
Joined: 04/18/2006
Posts: 14

Hi,

I created a cert using ElX509Certificate. Later I stored it in pfc file format using SaveToBufferPFX method.

Now I want to send the public key to the client in PFX file format. How can I extract the public key and store it in PFC file format?

Only method I can see in documentation is GetPublicKeyBlob method. I can used that to extract the blob but then I don't know how to save it in PFC file format.

Thanks a lot for your help.

rsm
----
#511
Posted: 06/21/2006 14:03:54
by Eugene Mayevski (EldoS Corp.)

You need to re-load the PFX to X509Certificate object, then save the certificate again without exporting the private key.

What you actually need is send a *certificate* without a private key, so you can send it in any format, i.e. either DER (using SaveTo*() method) or PEM (using SaveTo*PEM() method) or SPC or PFX if needed.


Sincerely yours
Eugene Mayevski
#512
Posted: 06/21/2006 14:26:11
by rsm  (Basic support level)
Joined: 04/18/2006
Posts: 14

Thanks a lot for your reply!

"save the certificate again without exporting the private key."

How can I save the certificate without exporting the private key?

Looking at X509Certificate, I don't know which method to us. SaveToBufferPFX method always saves the private key, right?

Thanks,
rsm
----




Reply

Statistics

Topic viewed 3342 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!