###1、下载openssl源码
https://www.openssl.org/source/
###2、安装环境
- vs2010
- ActivePerl
- nasm(将nasm.exe所在目录加入到%PATH%中)
###3、编译
- 进入Visual Studio 命令提示(2010)
- 进入源码目录
- 执行
perl Configure VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32
- 执行
set path=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;%PATH%
- 执行
set INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
- 执行
set lib=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
- 执行
nmake