Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Certutil -restrict Error The system cannot find the file specified

I am trying to get the certificates which are valid within the given date range:-

certutil –view –restrict "NotAfter<=July 31,2013 08:00AM,NotAfter>=July 20,2013 08:00AM" –out "RequestID,RequesterName"

Reference :- http://blogs.technet.com/b/pki/archive/2008/04/24/how-to-determine-all-certificates-that-will-expire-within-30-days.aspx

I get the following error :-

CertUtil: The system cannot find the file specified.

Any help is appreciated.

like image 851
Ashish Gupta Avatar asked Mar 09 '26 16:03

Ashish Gupta


1 Answers

I was facing the similar kind of problem where while adding the certificate to store using command CertUtil -addStore Mykey.cer was getting the error that

CertUtil: The system cannot find the file specified.

The problem was that is unable to locate the certificate or import it. So to resolve this i followed following things in (Administrator command prompt):--

1.Used ss -root in the end of MakeCert command . enter image description here

2.Run the CertUtil command from the same location where i runned the makeCert command. enter image description here

like image 125
Ravi Joshi Avatar answered Mar 12 '26 08:03

Ravi Joshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!