EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Sha256 Fingerprint

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#11400
Posted: 10/20/2009 08:46:03
by David MICHEL (Standard support level)
Joined: 09/23/2009
Posts: 48

Hello,

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

Thanks.


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

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

Hi,

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


Krzysztof Radzimski
Administration And Business Consulting
#14012
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.
#37489
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

Code
              <xades:CertDigest>
                <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
                <ds:DigestValue>...</ds:DigestValue>
              </xades:CertDigest>
#37490
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
#37491
Posted: 08/18/2016 09:22:21
by Venkat S (Basic support level)
Joined: 08/14/2014
Posts: 9

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


Eugene,
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?
#37492
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:

Code
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.

Reply

Statistics

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