- Download the english version from www.openssl.org.
I haven't had much luck in contacting their website, so I also put
it on our server here.
- INSTALL.W32 contains the instructions for installation under windows.
- The installation states that you must install perl. You must do this before
you can even run the make files. You can download
perl from http://www.activestate.com/ActivePerl.
- After installing perl, you will need to build the make files by
running ms\do_ms in the openssl folder.
- The next step has your run nmake, but make sure you have it in
your path (or run it from the directory where it resides), nmake is usually located at C:\Program Files\Microsoft
Visual Studio\VC98\Bin. VC++ vars must also be registered for the
dos prompt, you can do this by running VCVARS32.BAT.
- You will need to compile the dlls with nmake. Type nmake -f ms\ntdll.mak.
- Now you have the dlls and lib files you need for VC++, but all
the files are not in the correct place. Two dlls and lib files,
libeay32 and ssleay32, must be copied from the out32dll directory.
The dlls need to be in the same directory as your exe file, and
the lib needs to be in the LIB folder (usually C:\Program Files\Microsoft
Visual Studio\VC98\Lib or C:\Program Files\Microsoft Visual Studio.NET 2003\Vc7\Lib if you're using .NET)
- That's not all though, you must copy the .cpp and .h files to
the include folder of VC++ (usually C:\Program Files\Microsoft Visual
Studio\VC98\Include or the corresponding path for .NET) The best idea is to put them all in a subfolder
in the Include folder. Name the subfolder openssl. An easy way to
put them all in the same subfolder is to extract using winzip and
don't preserver the file structure, so all files are copied to the
openssl directory with no sub directories being created.
- Now all you have to do is type #include <openssl/whatever.h>
and you will get whatever file you need. Also, make sure you include
the libraries under link in project setting of VC++.