Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell doesn't recognize openssl even after I added it to the system path

I am on a 64bit Windows 10. I installed Win64 OpenSSL v1.1.0f and added the install directory C:\OpenSSL-Win64\bin to my system PATH. Upon running it in cmd or Powershell, I get:

openssl : The term 'openssl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

What else am I missing?

like image 472
ulak blade Avatar asked Aug 04 '17 12:08

ulak blade


2 Answers

If you're running it in Powershell, check $env:path to be sure "C:\OpenSSL-Win64\bin" is in there. Previous comments all reference the PATH variable in in cmd.exe, which your error message suggests you are not using.

If it is not, run the following command in Powershell:

$env:path = $env:path + ";C:\OpenSSL-Win64\bin"
like image 129
kpogue Avatar answered Oct 15 '22 11:10

kpogue


May be you need to close the session and open a new powershell, whenever you make changes to env variable it does not work on current session.

like image 26
Shreedhar Avatar answered Oct 15 '22 10:10

Shreedhar