EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sign a string using X509 certificate

Posted: 06/19/2015 08:25:12
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 112


If I have a certificate already defined in "FCert" variable, how can I sign a string using it ? The RSA algorithm and BASE64 format should be used.

Type of FCert is TElX509Certificate

Thanks in advance
Posted: 06/19/2015 11:30:52
by Ken Ivanov (Team)

Hi Eduardo,

Thank you for contacting us.

If you are speaking about PKCS#1-based signing, please have a look at the PKIBlackbox/Primitives/SignDetached sample, which illustrates the use of TElRSAPublicKeyCrypto component for raw data signing. Set the OutputEncoding property to pkeBase64 to get the output in Base64 form.

The key material of the certificate (which is supposed to be assigned to the TElRSAPublicKeyCrypto.KeyMaterial property) can be obtained via the TElX509Certificate.KeyMaterial property.

Posted: 06/19/2015 13:57:50
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 112


I saw the example and it works like expected (so far).

My requirements does not ask about PKCS#1 but I think you have solved my problem.

Thanks for the quick answer



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