Installing OpenSSL on Windows 7 32bit

微笑、不失礼 提交于 2019-12-05 20:06:30

Download the latest OpenSSL source distribution (at the moment openssl-1.0.1c.tar.gz), not the FIPS module (read here), then follow the simple steps in the INSTALL.W32 or INSTALL.W64 file in the root of the source distribution. It's trivial. What you need is one of the supported VC++ versions and Perl (Strawberry Perl works fine for me) and you may opt in to using NASM for optimized code in a few places.

Depending on whether you use NASM it will be (without):

perl Configure VC-WIN32 no-asm --prefix=d:/openssl

or (with NASM):

perl Configure VC-WIN32 --prefix=d:/openssl

followed by:

ms\do_ms

and then after starting the VC++ command line ("Visual Studio XXXX Command Prompt") for the configured environment do from the root folder of the source distribution:

nmake -f ms\ntdll.mak

then:

nmake -f ms\ntdll.mak test

and if that comes out clean ("passed all tests"):

nmake -f ms\ntdll.mak install.

I just ran it up this this step and it works flawlessly (as usual!) for the latest released OpenSSL (1.0.1c) under Visual Studio 2005. Re-trying with 2010 now.

Edit: just tried under the "Visual Studio Command Prompt (2010)" and it works as well here.

Note: consider the remarks in the INSTALL.W64 ("Caveat lector").

Also note: the FIPS module complements the OpenSSL distribution. You aren't actually compiling OpenSSL itself when you build the FIPS module!

I just tried this from a 'Developer's Command Prompt' for VS2012.

It worked fine. Passed all tests.

I have ActiveState Perl on my path; I believe it is/was ahead of Strawberry Perl which is also on my machine.

-- HerbM

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!