- Install MS Visual Studio. It will work even with MS Visual Studio 2010 Express edition.
- Create a new folder C:\openssl-1.0.1g
- Download latest OpenSSL source from https://www.openssl.org/source/. I am using “openssl-1.0.1g.tar.gz” in this tutorial.
- Extract the file to C:\openssl-1.0.1g
- Download & install ActiveState Perl @ ActiveState Perl
- Make sure you set “C:\perl\bin\” in the system path.
- Create a new folder “C:\openssl-1.0.1g-bin” which will hold all the built libraries in later.
- Open the command prompt windows.
- Run “C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat” to get visual studio environment setup.
- Browse to C:\openssl-1.0.1g
- 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.
- Run “ms\do_ms”.
- Run “nmake -f ms\ntdll.mak”. Compilation should start now and it will take some time to compile.
- 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.
- 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.
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"
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"
Error!
Not “perl Configure VC-WIN32 no-asm –prefix=C:\openssl-1.0.1b” but “perl Configure VC-WIN32 no-asm –-prefix=C:\openssl-1.0.1b”
Arr…good spot. 🙂
I’ve updated with the correct one now.
You are missing a step between the perl Configure step and the nmake step:
ms\do_ms
Hi..
I tried to install openssl using all the steps u’ve posted here,
But when I tried to do:
perl Configure VC-WIN32 no-asm –prefix=C:\openssl-1.0.1b
it always say:
Can’t open perl script “Configure”: No such file or directory
I did all the steps u’ve posted exactly.
I have MS Visual Studio, downloaded and extracted openssl-1.0.1b.tar.gz into C:\openssl-1.0.1b-dev, then downloaded and install ActiveState Perl version 5.16.2.1602 for Windows (x86) MSI from the site u gave.
I also created the C:\openssl-1.0.1b and set the environment for using MS Visual Studio tools. and browse to C:\openssl-1.0.1b-dev before trying to do the configuration.
Can you please help me how to solve this problem?
Thanks in advance!
Your CMD need to browse to C:\openssl-1.0.1b-dev\ and run the perl command again. The Configure file is located in C:\openssl-1.0.1b-dev\
Hi,
I am getting the following error after using nmake -f ms\ntdll.mak
C:\build\openssl-1.0.1b-dev>nmake -f ms\ntdll.mak
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1052: file ‘ms\ntdll.mak’ not found
Stop.
C:\build\openssl-1.0.1b-dev>
perl Configure VC-WIN32 no-asm –prefix=c:\openssl
ms\do_ms (…this step been missed,next step will respond ms\ntdll.mak not found )
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak test
nmake -f ms\ntdll.mak install
What a pitiful guide really
Good and clear guide, trolls should drive their wheelchairs somewhere else.