Keeping your computer secure is a balancing act. On one hand, you need to keep your computer safe from viruses and hackers so that confidential information doesn’t get leaked. On the other hand, it’s also important that programs and apps are able to access information from users as needed so they can complete tasks efficiently. Keeping these two factors in mind is essential when installing software on your Windows OS.

Advertisement

Luckily for you, this article will explore how you can install OpenSSL on Windows. You see, OpenSSL helps developers and programmers create applications or software that have encrypted communication over the internet. In this article, you will learn what OpenSSL is and why it’s essential when creating a new app or program with security in mind. Additionally, we explore how to install OpenSSL on Windows using simple steps that even beginners can understand. Let’s get started!

This tutorial will help you to install OpenSSL on Windows operating systems.

Step 1 – Download OpenSSL Binary

You need to download the latest OpenSSL windows installer file. Click the below link to visit the OpenSSL download page:

http://slproweb.com/products/Win32OpenSSL.html

How to Install OpenSSL on Windows

The above screenshot may be outdated but we recommend downloading the most recent version of OpenSSL.

Step 2 – Run OpenSSL Installer

Now run the OpenSSL installer on your system. The OpenSSL required Microsoft Visual C++ to be installed on your system. If your system doesn’t have Microsoft Visual C++ installed, the installer will show your message like:

Click Yes to download and install required Microsoft Visual C++ package on your system.

Then again run the OpenSSL installer and follow the wizard.

Step 3 – Setup Environment Variables

Now set the environment variables to function OpenSSL properly on your system. You are required to set OPENSSL_CONF and Path environment variables.

Use the following commands to set the environment for the current session only:

set OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg 
set Path=%Path%;C:\OpenSSL-Win64\bin 

Set Variables Permanently – You can also set the OPENSSL_CONF and Path environment variables in the system permanently. To set the environment variable follow:

Press Windows + R keys together to open run window, Then type “sysdm.cpl” in the Run dialog box and hit Enter. Alternatively, you can open Command Prompt and type the same command to open System Properties

Go to “Advanced” tab and click on “Environment variables“.

Set OPENSSL_CONF Variable:

Set Path Variable:

Step 4 – Run OpenSSL Binary

Open a command prompt on your system and type openssl to open OpenSSL prompt. After that type version to get the installed OpenSSL version on your system.

Conclusion

This tutorial helped you for installing OpenSSL on the Windows system. As a best security practice, it is recommended to use the latest OpenSSL version on your system. You can find the latest version details from the www.openssl.org

Share.

47 Comments

  1. Dr.George perlington on

    hello i have problem when i installed and uninstalled i cant again install in same computer whats the problem ?

    Thanks,
    George

  2. Being a kinda smart guy, I copied and pasted the text for the environment variables from this page. Well, I had installed the 64 bit and the examples are 32 bit; and mine went into Program Files. So it not work. Had to edit these changes 🙂

  3. I installed openssl and it works properly as an exe. I am having trouble linking to the libs to use in an application.. The includes and library paths are set up. VS2017. 32bit. The various functions in ssl.h and crypto.h are not found by the compiler.

    • I am having the same problem. The “openssl version” command worked. I have added the inckude path to the “additional include file directory” path., but Visual Studio still cannot find the .h files.

  4. People must install an open SSL on their websites so that visitors will trust and will feel secure during the financial transactions. It can be installed with help of easy steps which are mentioned by the author.

  5. You must install in your website OpenSSL (secure socket layer) to secure your website and it’s free its a toolkit for TLS TRANSPORT LAYER SECURITY, YOU JUST NEED TO DOWNLOAD AND INSTALL FOLLOWED BY JUST FEW STEP.

  6. I am trying to follow this guide but it’s not working. I keep getting ‘The system cannot find the path specified.’ – i’m running it from the cmd admin. I’ve added the new system variable, but I’m lost when adding the path variable. Originally I had C:\OpenSSL-Win64\bin as copied from a different tutorial, but I don’t know what you mean other values here in this bit set Path=……Other Values here……;C:\OpenSSL-Win32\bin – I tried to follow the tutorial, but I don’t know what I need to add.

      • Hi Rahul, thank you so much for your kind response, but I still don’t know what to type. Do you mean when I select path, then edit, i add C:\OpenSSL-Win64\bin to the bottom of the list? That’s what I have done (from a different tutorial) but it’s still not working. I am at my wits end trying to get this to work.

  7. I follow steps and it didn’t install C++ binaries. But when try to run get below error –

    The code execution cannot proceed because MSVCR120.dll was not found. Reinstaling didn’t fix it.

  8. I also wanted to install OpenSSL in my windows but could not install. Then I got your informative post and installed perfectly. It was working.

  9. Hi, thank you for the information. At this time, I’m getting “‘openssl’ is not recognized as an internal or external command,
    operable program or batch file.” when running openssl from command prompt. Any suggestion as to resolve this?

    Thanks,
    Tien

  10. Would you happen to know how I get the c compiler (gcc) to use the openssl library when I use #include in my program?, it says “no such file or directory”

  11. > Download the latest OpenSSL windows installer from Official download page. The official download page link is given below: http://slproweb.com/products/Win32OpenSSL.html

    WARNING !!!!
    http://slproweb.com/products/Win32OpenSSL.html is NOT official download page – it’s third party software.

    The OpenSSL project does not distribute any code in binary form, and does not officially recommend any specific binary distributions. An informal list of third party products can be found on the wiki (https://wiki.openssl.org/index.php/Binaries)

  12. Jayan Gopinath on

    Thanks a lot Rahul. I did install 1.0.2j version on my Windows xp desktop. But it is not working properly.
    Even python pip stopped working after that because of SSL TLS issues. Could you please send me a sample
    openssl.cfg file for Windows XP SP3. Thanks in advance.

Leave A Reply

Exit mobile version