У меня есть сертификат клиента в certstore. Я пробую это:
certutil.exe -verify CertCommonName
но получаю эту ошибку, когда я пингую certutil.exe - он подключается к ПК.
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.
Вместо CertCommonName вам нужно указать путь к файлу сертификата, то есть certutil -verify examplecertificate.cer, а не certutil.exe -verify CertCommonName. То, как вы ищете файл с именем CertCommonname, и не можете его найти.