openssl version.User PATH via GUI (no admin needed)
- 1
Open Environment Variables
Press Win+S, search Environment Variables → Edit the system environment variables → Environment Variables…
- 2
Edit User → Path
Under User variables (top section): select Path → Edit → New.
- 3
Add the OpenSSL bin path
C:\Program Files\OpenSSL-Win64\binAdjust if you chose a custom install folder. Click OK on all dialogs.
- 4
Open a new terminal and verify
C:\> openssl versionOpenSSL 4.0.0 6 Jun 2025C:\> where opensslC:\Program Files\OpenSSL-Win64\bin\openssl.exe
System PATH via GUI (all users, admin required)
- 1
Open Environment Variables as admin
Right-click Edit the system environment variables → Run as administrator → Environment Variables…
- 2
Edit System → Path
Under System variables (bottom section): select Path → Edit → New → add
C:\Program Files\OpenSSL-Win64in.
Command line one-liner
Command Prompt:
PowerShell:
setx truncates PATH values longer than 1024 characters. If your PATH is long, use the GUI method instead.Common problems
openssl is not recognized after adding to PATH
where openssl to confirm Windows can find it.openssl version shows an old version
where openssl to see all resolved paths. Move the new installation's bin folder to the top of PATH in the Environment Variables editor.setx truncated my PATH
setx has a 1024-character limit on PATH. Use the GUI method: Settings → System → Advanced system settings → Environment Variables → edit Path manually.Still getting libcrypto.dll error after adding PATH
Still seeing errors?
PATH set but OpenSSL still fails? Usually the VC++ Redistributable.
Related guides