EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Extracting public key

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
Posted: 06/21/2006 13:56:22
by rsm  (Basic support level)
Joined: 04/18/2006
Posts: 14


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.

Posted: 06/21/2006 14:03:54
by Eugene Mayevski (Team)

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
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?




Topic viewed 4314 times

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


Back to top

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

Got it!