In order to build openSSL from the source code you will need to install a couple of third party free software. In this post I describe what I did on a virgin windows pc in order to build openSSL 1.0.1c.
Moreover you will need Visual Studio C++. The express edition is fine. I have been using the 2010 edition which is available for free at Microsoft.
Download the source code and extract it somewhere. Since I am building openSSL to use it in the webinos platfrom, I will be installing it at C:\OpenSSL-Win32. Moreover I don’t care about the assembly language files. So I configure the build environment giving the following command:
perl Configure VC-WIN32 no-asm --prefix=c:\OpenSSL-Win32
Now it’s time to build things. Open a visual studio command prompt or in the existing prompt type:
Note that this is for visual studio 2010 only (you will have to find the corresponding VSxxxCOMNTOOLS environment variable eg xxx=100 for 2010, xxx=90 for 2008 etc).
Now you can build openSSL by posting the following command:
nmake -f ms\ntdll.mak
A final step is to install it in the configured folder, which is done by posting the following command:
nmake -f ms\ntdll.mak install
Make sure you add the C:\OpenSSL-Win32\bin folder in your path environment variable and then enjoy your fresh build of openSSL.
PS: Now that you have build openSSL using visual studio 2010, you don’t need the VS2008 re-distributable which is required by the prebuild binaries that are available from the shining light production website. You need the VS2010 re-distributable though, which is already included in the webinos platform re-distributable.