What is correct syntax to verify a certificate in the certificate store using certutil.exe?

1

I have a client certificate in certstore. I try this:

certutil.exe -verify CertCommonName

but in get this error when I ping certutil.exe -ping it connect to pc.

DecodeFile returned The system cannot find the file specified. 0x80070002 (WIN32: 2)       

LoadCert(Cert) returned The system cannot find the file specified. 0x80070002 (WIN32: 2) 

CertUtil: -verify command FAILED: 0x80070002 (WIN32: 2) CertUtil: The system cannot find the file specified.
windows
certificate
asked on Server Fault Oct 29, 2009 by (unknown user) • edited Mar 7, 2011 by JeffG

1 Answer

1

Instead of CertCommonName you need to give the filepath path to a certificate file i.e. certutil -verify examplecertificate.cer rather than certutil.exe -verify CertCommonName. The way you have its looking for a file called CertCommonname and cant find it.

answered on Server Fault Nov 23, 2009 by Mark Sutton • edited Apr 21, 2017 by HBruijn

User contributions licensed under CC BY-SA 3.0