openssl.exe is not on your Windows PATH. Even if OpenSSL is installed, Windows cannot run it unless the bin folder is in PATH.Diagnose the problem first
If Step 1 fails — OpenSSL is not installed. If Step 1 passes but Step 3 fails — PATH is not set correctly.
OpenSSL is installed but bin not on PATH
Add C:\Program Files\OpenSSL-Win64in to your PATH. Three methods:
GUI method (permanent, no admin needed)
- Press Win+S → search Environment Variables → Edit environment variables for your account.
- Select Path → Edit → New → type
C:\Program Files\OpenSSL-Win64in. - Click OK. Open a new terminal window and run
openssl version.
Command line (permanent)
Current session only (temporary)
This works only in the current terminal window. Use setx or the GUI for a permanent fix.
Full step-by-step guide: Add OpenSSL to PATH.
PATH was added but terminal was not restarted
PATH changes only apply to new terminal windows. The terminal you added PATH in will not pick up the change.
OpenSSL is not installed
If dir "C:\Program Files\OpenSSL-Win64in\openssl.exe" returns File Not Found, OpenSSL is not installed. Download and install the Win64 prebuilt:
After installing, follow the Add to PATH guide and then open a new terminal.
Multiple OpenSSL versions — wrong one in PATH
If where openssl returns a path but it is the wrong version (e.g. Git for Windows bundles an older OpenSSL):
The first result wins. Move C:\Program Files\OpenSSL-Win64in before the Git bin in your PATH using the Environment Variables GUI. Drag it to the top of the list.
Common questions
I added PATH but still get "not recognized"
Works in cmd.exe but not PowerShell (or vice versa)
openssl command exists but shows old version
where openssl to see which binary Windows is resolving. If it points to Git, Cygwin or another bundled copy, reorder PATH so the OpenSSL-Win64 bin folder comes first.Full PATH setup guide
Step-by-step instructions for all three methods of adding OpenSSL to PATH.
Related guides