在Windows上编译openssl

###1、下载openssl源码

https://www.openssl.org/source/

###2、安装环境

  1. vs2010
  2. ActivePerl
  3. nasm(将nasm.exe所在目录加入到%PATH%中)

###3、编译

  1. 进入Visual Studio 命令提示(2010)
  2. 进入源码目录
  3. 执行perl Configure VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32
  4. 执行set path=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin;%PATH%
  5. 执行set INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
  6. 执行set lib=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib
  7. 执行nmake
分享