OpenSSL is a general purpose cryptography library that provides an open source implementation of the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. I have seen many people try to access the opesssl through windows command prompt and receive an error saying that – openssl is not recognized as internal or external command.
What is the error?
openssl is not recognized as an internal or external command:
‘openssl’ is not recognized as an internal or external command
The above error displayed as the OpenSSL application is not installed in your computer system. However, OpenSSL is not shipped with any operating system, and you would need to install it externally. Follow the below sequence of steps to install and configure the OpenSSL on your computer.
Download openssl binary from location http://indy.fulgan.com/SSL/.
Once the link is opened, you can see the list of OpenSSL binaries. You would need to select the one which is the latest to download. Ensure that you have selected OpenSSL binary, either 32bit or 64bit, compatible with your computer processer architecture. The OpenSSL binary is packaged and distributed in a .zip file. E.g., OpenSSL-0.9.8s-x64_86-win64.zip
Once the binary is downloaded, extract the openssl .zip file in to any folder you wish. E.g. C:\openssl\
Watch the below video to set up the PATH environment variable.
Finally, open the command prompt and check the openssl command. You will be allowed to enter into openssl application.
Download OpenSSL binary from location from google – https://code.google.com/archive/p/openssl-for-windows/downloads.
Install OpenSSL on your machine. Once the installation is done, you need to check that its installed location is in your %PATH%. By default, it probably won’t set directly after the install. For example, suppose OpenSSL is installed at c:\OpenSSL-Win32 then the OpenSSL binary is probably located at c:\OpenSSL-Win32\bin\openssl.exe. So your path needs to include c:\OpenSSL-Win32\bin
In this case, you would need to set the %PATH% environment variable to c:\OpenSSL-Win32\bin\ that locate the openssl.exe. The other way is to invoke the OpenSSL command by providing the absolute path c:\OpenSSL-Win32\bin\ in the command line.
This way, you can solve the issue.
– Article ends here –