Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

While it is easy to compile openssl on Linux,  it is messy to compile
openssl on windows. The following demostrates the steps to how to
compile OpenSSL for windows.

note: you must have VC 6.0 installed

Step One: Make sure you have perl install on windows. if not, follow
the  "install Perl on windows" section. if so, you can jump to Step
Two directly.

Install Perl on Windows

1.Download ActivePerl for Windows (Windows MSI package)  from

2.Install the package (just double click the msi package, that is
easy). I have installed it in the path :  C:/perl

3.Add the bin directory in the installed directory to your PATH
enviroment variable. in my case it is "C:/perl/bin"

4. In the command window( run the cmd.exe), type "perl -v", if there
are somthing like "it is perl ..."displayed on console, you succeed.

Step Two: Compile OpenSSL

1. download the latest version of openssl from openssl.org. For
is  openssl-0.9.8g.tar.gz

2. unpack the downloaded package.

3. in the console window, change the working directory to where you
unpacked the package. in my case, it is C:\openssl-0.9.8g.   (i.e.
cd  c:\openssl-0.9.8g)

4. run the configure command:

perl Configure VC-WIN32

5. run the compile command:


nmake -f ms\ntdll.mak

6. after the compilation ,there exists a directory named
"out32dll" (for me, it is C:\openssl-0.9.8g\out32dll) containing all
the binary files (such as openssl.exe)and library files of openssl
(libeay32.dll, libeay32.lib, ssleay32.dll, ssleay32.lib). Also there
is an "include" diretory (for me, it is C:\openssl-0.9.8g\include)
which is used for developers.

the original text was published on : http://www.info-life.cn /
 link:  http://www.info-life.cn/2007/11/compile-openssl-for-windows.html

Site Timeline