What is OpenSSL? @Wikipedia: “OpenSSL is an open-source implementation of the SSL and TLS protocols. The core library, written in the C programming language, implements the basic cryptographic functions and provides various utility functions.” Enough for the explanation of OpenSSL. 🙂 Let’s go for the real tutorial on how you can install OpenSSL into you 32 bit Windows. I am using 32 bit Windows 7 for this tutorial. Before we can start the installation, please make sure that you have the following items ready or installed in your system: MS Visual Studio
  1. Install MS Visual Studio. It will work even with MS Visual Studio 2010 Express edition.
  1. Create a new folder C:\openssl-1.0.1g
  2. Download latest OpenSSL source from https://www.openssl.org/source/. I am using “openssl-1.0.1g.tar.gz” in this tutorial.
  3. Extract the file to C:\openssl-1.0.1g
  1. Download & install ActiveState Perl @ ActiveState Perl
  2. Make sure you set “C:\perl\bin\” in the system path.
With the readiness of above mentioned items, we are now ready to build the OpenSSL library.
  1. Create a new folder “C:\openssl-1.0.1g-bin” which will hold all the built libraries in later.
  2. Open the command prompt windows.
  3. Run “C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat” to get visual studio environment setup.
  4. Browse to C:\openssl-1.0.1g
  5. Run “perl Configure VC-WIN32 no-asm – -prefix=C:\openssl-1.0.1g-bin”. This will configure to build using visual C++ in Win32 platform. Also, it will configure to install to “C:\openssl-1.0.1g-bin” in later step.
  6. NOTE:
    If you wish to compile with debugging symbols. Then run the
    following command:

    "perl Configure debug-VC-WIN32 no-asm --prefix=C:\openssl-1.0.1g-bin"
  7. Run “ms\do_ms”.
  8. Run “nmake -f ms\ntdll.mak”. Compilation should start now and it will take some time to compile.
  9. Once the compilation is completed. You may test the output by running this command “nmake -f ms\ntdll.mak test”. You should get all the tests pass.
  10. It’s time to install the library now. Run this command “nmake -f ms\ntdll.mak install”. It will copy all the libraries to C:\openssl-1.0.1g-bin.
At this point, the OpenSSL libraries for 32 bit Windows should be ready.