一.下载openssl源码
下载地址:https://www.openssl.org/source/
二.按照安装说明下载activeperl。
1下载地址:https://www.activestate.com/activeperl/downloads
2 打开命令提示符,定位到 D:\Program Files\Perl\eg
目录,执行 perl example.pl
,若提示 Hello from ActivePerl!
则说明 Perl 安装成功
三.下载并安装 Nasm 汇编器,并将 D:\Program Files\NASM
添加到系统环境变量 Path 中。
下载地址:http://www.nasm.us/
我下载的是:nasm-2.13.01-installer-x64.exe
四.开始
1 进入openssl解压后的目录,打开vs工具终端!!!,一定记得是VS的终端,不是windows的,不然会爆稀奇古怪的错误,
2 输入命令 perl Configure VC-WIN32 --prefix=E:\OpenSSL ,生成makefile文件
3. 运行makefile文件 ,进行编译 命令nmake -f makefile 。
接下来 就等着编译完成吧。
4.安装编译好的openSSL
运行命令 “nmake -f makefile install”,这样,文件就考到你的安装目录下去了。然后写代码测试一下吧