Building Static OpenSSL on Windows
Apr 1, 2021
- Install Strawberry Perl
- Install NASM
- Add NASM to the system PATH
- Download OpenSSL
- Open the Visual Studio tools command prompt for the compiler you intend to use
- Move to the extracted OpenSSL folder
- Configure
perl Configure VC-WIN32 no-shared
- Change
WIN32
to WIN64
for 64-bit
- Edit the
makefile
and change the optimization settings if needed
- Build
- Install
nmake install
- Libraries should be in
C:\Program Files (x86)\OpenSSL
- if it fails, just use the current OpenSSL directory instead
- Rename libcrypto.lib to libeay32.lib
- Rename libssl.lib to ssleay32.lib
- Build cURL with static OpenSSL