我在 certstore 中有一个客户端证书。我尝试这样做:
certutil.exe -verify CertCommonName
但是当我 ping certutil.exe -ping 它连接到电脑时出现此错误。
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.
答案1
您需要提供证书文件的文件路径,而不是 CertCommonName,即 certutil -verify examplecertificate.cer,而不是 certutil.exe -verify CertCommonName。您使用的方式是查找名为 CertCommonname 的文件,但找不到它。