CertUtil: -hashfile command FAILED using CMD windows

I downloaded Gpg4win and wanted to authenticate if everything was legit during download so I used the following below in windows 8.1 command prompt:

C:\Users\mycomputer\Downloads>certutil -hashfile gpg4win-3.1.13.exe sha256
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.

I can open Gpg4win on my desktop fine.

Hi Gwen,

you may need to adapt the filename “gpg4win-3.1.13.exe” to the file you have actually downloaded.

Note that if you can start Gpg4win already, then it is already installed.
Using one method of checking the integrity before installation is enough.

Best Regards,

Hi Bernhard,
I would like to check integrity of the gpg4win that I downloaded. So I adapted the file from “gpg4win-3.1.13.exe” to “gpg4win-3.1.15.exe” (actual download name). However I got same result. Which is:

C:\Users>certutil -hashfile gpg4win-3.1.15.exe sha256
CertUtil: -hashfile command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT
CertUtil: The system cannot find the file specified.

Hi Gwen,

you could either
a) use a different integration checking method, see https://wiki.gnupg.org/Gpg4win/CheckIntegrity

b) check with the explorer or the command lines (dir) command if the file “gpg4win-3.1.15.exe” is actually in the directory that you are in. Maybe you need to issues a few change directory commands (cd) before.


Hi Bernhard

I went with option B and I got this:

certutil -hashfile gpg4win-3.1.15.exe sha256
SHA256 hash of file gpg4win-3.1.15.exe:
58 b4 de 19 2c e0 f3 a7 f2 57 66 e9 6e c3 79 a8 f1 25 e3 a1 e2 bd b2 51 9c 18 5a
03 a0 a4 ed 4c
CertUtil: -hashfile command completed successfully.

If this means Check Integrity is authentic then thanks for assisting.