Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find X.509 certificate using FindByThumbprint

Tags:

.net

x509

I am getting the following error when I try to instantiate an instance of a third party web service client...

Cannot find the X.509 certificate using the following search criteria:
StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', 
FindValue '[value in here]'.

The strange thing is that we have this working on another development machine, but it is steadfastly refusing to work on mine. We have added the certificate to the machine's certificate store in the same way (as far as we can tell) on each machine.

Can anyone offer any suggestions about how to troubleshoot this?

like image 896
Richard Ev Avatar asked Mar 02 '09 13:03

Richard Ev


People also ask

Where is Windows x 509 certificate?

Under "Personal" tab you can see the installed certificates for you user account (as you are using the "My" store name). Double-clicking on an installed certificate under Details tab you have all information you can use on find value attribute, like the thumbprint.

How do I get x509 certificate?

Open cmd prompt, change directory to desktop & type command- openssl. It is a process of creating a simple x509 certificate that will be used for digital signatures. Press enter and fill in all the required information like the password for creating keys & a few personal information.

Is SSL the same as x509?

509 certificates are digital files that are used for Secure Sockets Layer (SSL) or Transport Layer Security (TLS). An SSL/TLS certificate is one of the most popular types of X. 509 certificates or a type of public-key certificate which uses the X. 509 standard.

What is x509 certificate error?

If a user attempts to use a self-signed certificate, they will experience the x509 error indicating that they lack trusted certificates. Some smaller operations may not have the resources to utilize certificates from a trusted CA.


2 Answers

Maybe you don't have the certificate installed on that machine. Take a look on Internet Explorer (Tools | Internet Options | Content tab | Certificates) installed client certificates.

Under "Personal" tab you can see the installed certificates for you user account (as you are using the "My" store name). Double-clicking on an installed certificate under Details tab you have all information you can use on find value attribute, like the thumbprint.

Note that on Windows 10, the certificates are found in the local "Computer" store. On Windows Server 2008 R2 and below, they will be found in "Personal".

like image 149
CARLOS LOTH Avatar answered Sep 29 '22 17:09

CARLOS LOTH


Here's what worked for me:

Invalid - 252967BFBCD543D93A79AFD86D4A5117A9C6767B

Added 0x (prefix for hexadecimal numeric constants)

Valid - 0x252967BFBCD543D93A79AFD86D4A5117A9C6767B

like image 30
Jay A. Fisher Avatar answered Sep 29 '22 16:09

Jay A. Fisher