EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to get sha1 Thumbprint for a certificate?

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#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 (EldoS Corp.)

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 (EldoS Corp.)

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 (Standard 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 (EldoS Corp.)

In Delphi you should use SBUtils.DigestToStr()
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

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