EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to get sha1 Thumbprint for a certificate?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#394
Posted: 06/06/2006 10:51:08
by Aaron Cohen (Basic support level)
Joined: 06/05/2006
Posts: 6

Hello,

I need to get the sha1 Thumbprint for a certificate in My certificate store. What is the best way to do so? Am I missing something obvious?

Thanks
#395
Posted: 06/06/2006 10:59:18
by Ken Ivanov (Team)

Please consider using TElX509Certificate.GetHashSHA1() method. It does exactly what you need.
#397
Posted: 06/06/2006 11:26:40
by Aaron Cohen (Basic support level)
Joined: 06/05/2006
Posts: 6

Again, I'm sorry if this is an obvious question. How do I convert from the 5 uint values returned in the TMessageDigest160 object to the Thumbprint value (in Hex?) I see when I view the certificate details?
#398
Posted: 06/06/2006 12:02:00
by Ken Ivanov (Team)

Quote
How do I convert from the 5 uint values returned in the TMessageDigest160 object to the Thumbprint value (in Hex?)

You can use SBUtils.Unit.DigestToBinary160() function to convert SHA-1 fingerprint to byte[] representation, or SBUtils.Unit.DigestToStr160() to convert it to string.
#399
Posted: 06/06/2006 12:20:05
by Aaron Cohen (Basic support level)
Joined: 06/05/2006
Posts: 6

Thankyou! :D
#14966
Posted: 11/05/2010 04:50:32
by Bogdan Chudzikiewicz (Premium support level)
Joined: 10/18/2010
Posts: 3

Quote
SBUtils.DigestToStr160()


In Delphi not exist ?


Bogdan
#14968
Posted: 11/05/2010 05:11:55
by Vsevolod Ievgiienko (Team)

In Delphi you should use SBUtils.DigestToStr()
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

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