Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]

土豪的OpenSSL直通车-> 点我 (我将编译好的dll和lib上传了,下载后可以直接使用,呼应标题~~~)


非土豪的看过来:

准备工作见我的博客:Windows下编译OpenSSL库[准备工作] 

1. 打开Visual Studio x64 Win64 Command Prompt(2010) , 进入到OpenSSL的文件夹,运行perl Configure VC-WIN64A

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


2. 当看到Configured for VC-WIN64A之后,输入ms\do_win64a.bat(记得tab自动补全).

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


3. 成功运行以后,输入nmake -f ms\ntdll.mak (记得tab自动补全). 按下回车,基本上就是你有成就感的时候了~~

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


[满屏的编译信息滚动 hhhh.....]

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


4. 等待编译完成,进入out32dll目录,运行test脚本 

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


再又是一波666的刷屏后.....

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


看到Passed all tests,基本上也就大功告成了。

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]


这个时候去out32dll目录下就可以找到我们需要的库了。要用的就是libeay32, ssleay32

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]

Windows下编译OpenSSL库 [64位] [保证可用~~ 不服来打我呀]