EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sha256 Fingerprint

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 10/20/2009 08:46:03
by David MICHEL (Standard support level)
Joined: 09/23/2009
Posts: 48


I need to get the Sha256 Fingerprint (Thumbprint) for a certificate. What is the best way to do so ?


Sincerely yours,
Posted: 10/20/2009 08:59:07
by Ken Ivanov (EldoS Corp.)

Pass the DER-encoded certificate to TElHashFunction.Update() method.
Posted: 07/24/2010 11:12:19
by Krzysztof Radzimski (Standard support level)
Joined: 07/21/2010
Posts: 3


Maybe this will help?
string thumbprint = Certificate.ToX509Certificate2(false).Thumbprint;

Krzysztof Radzimski
Administration And Business Consulting
Posted: 07/26/2010 06:10:12
by Ken Ivanov (EldoS Corp.)

The above call will return a SHA1 fingerprint (not a SHA256 one). Besides, this method is quite ineffective, as it involves conversion of certificate from TElX509Certificate instance to a .NET X509Certificate2 object.
Posted: 08/18/2016 08:54:16
by Venkat S (Basic support level)
Joined: 08/14/2014
Posts: 9

I've the same question as David. I want to include the SHA256 thumbprint of the certificate. How can i get it? I do not understand Ken's suggestion. Is it possible to provide a code sample? BTW, my certificate is from a SmartCard

                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
Posted: 08/18/2016 09:16:25
by Eugene Mayevski (EldoS Corp.)

Venkat, I’ve noticed there is no support access ticket linked to your user account on EldoS site. Support is provided to customers with the linked support access tickets. You will find your support access ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase.

Sincerely yours
Eugene Mayevski
Posted: 08/18/2016 09:22:21
by Venkat S (Basic support level)
Joined: 08/14/2014
Posts: 9

Eugene Mayevski wrote:
Venkat, I’ve noticed there is no support access ticket linked to your user account on EldoS site.

Thanks for the response. That's probably we are still using the trial license of SBB .Net We are doing a pilot project, wherein we are evaluating if SBB can meet our requirements. Will it be possible to help our pilot?
Posted: 08/18/2016 10:46:53
by Eugene Mayevski (EldoS Corp.)

Our evaluation license doesn't allow any development . You need to purchase a license to develop anything besides simple test cases or SecureBlackbox samples. So you are welcome to purchase the license.

As for your question -- that's trivial:

TMessageDigest256 Hash = SBSHA2.Unit.HashSHA256(Certificate.CertificateBinary);
ByteArray HashArray = SBUtils.Unit.DigestToByteArray256(Hash);

Alternatively you can use TElHashFunction class. Search for samples here on the forum.

Sincerely yours
Eugene Mayevski
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.



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