EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Loading keys to ElRSAKeyMaterial

Posted: 05/10/2006 17:38:52
by Luis Arenal (Standard support level)
Joined: 05/10/2006
Posts: 13

I need to assign the PublicKey and SecretKey properties of an object of type TElRSAKeyMaterial (Vcl version).
The public key resides in a X.509 certificate file (*.cer) and so far I loaded the certificate in
an object of type TElX509Certificate.
The private key resides in a PKCS8 compliant file (*.key) and I loaded it in an object of
type TElPKCS8PrivateKey.
My question is, how do I assign these keys to my TElRSAKeyMaterial object from the mentioned objects?

Thank you very much.
Posted: 05/11/2006 05:02:33
by Ken Ivanov (Team)

The private key material can be accessed via TElPKCS8PrivateKey.KeyMaterial property. You can load it into TElRSAKeyMaterial object using its LoadSecret method.
Posted: 05/11/2006 08:42:15
by Luis Arenal (Standard support level)
Joined: 05/10/2006
Posts: 13

And how can I assign the TElRSAKeyMaterial.PublicKey from the TElX509Certificate object?
Posted: 05/11/2006 13:51:23
by Ken Ivanov (Team)

Please consider using TElRSAKeyMaterial.Import method. This method also imports the private key material if it is available in the supplied TElX509Certificate instance.



Topic viewed 7685 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!