-
Notifications
You must be signed in to change notification settings - Fork 16
Building OpenSSL on Windows
Günter Obiltschnig edited this page Jul 5, 2017
·
2 revisions
In order to build OpenSSL on Windows for WebTunnelAgent using Visual Studio 2015/2017, follow these steps:
Download and install the following software packages:
- 7-Zip to unpack the OpenSSL source code archive (.tar.gz)
- Perl (ActiveState) in order to build OpenSSL
- Get the OpenSSL sources from the OpenSSL Downloads Page.
- Unpack the source code package (openssl-1.0.2l.tar.gz) using 7-zip. This is a two-step process. First, expand the GZip-compressed .tar.gz, then unpack the openssl-1.0.2l.tar file, resulting in a directory named openssl-1.0.2l.
Launch a x86 Native Tools Command Prompt for Visual Studio 2015/2017 and cd into the openssl-1.0.2l directory. Then run the following commands:
Configure OpenSSL to be installed into C:\OpenSSL-Win32. You can of course also specify a different directory.
> perl Configure VC-WIN32 no-asm --prefix=C:\OpenSSL-Win32
> ms\do_ms
This will take a couple of minutes.
> nmake -f ms\nt.mak
This will install the libraries, executables and header files into the directory specified in the Configure step.
> nmake -f ms\nt.mak install
Congratulations, you have successfully built OpenSSL.