OpenSSL在Windows下的编译安装

转自http://blogger.org.cn/blog/more.asp?name=OpenSSL&id=18972

一.OpenSSLWindows下的编译安装

解压OpenSSL以后, 在其目录下可以发现有个INSTALL.W32文件,这个文件就是在windows下的安装说明。你可以用UltraEdit打开它。

1.安装perl,perl可以从http://www.activestate.com/ActivePerl下载。

2.安装编译器(任意一个都可以),我仅以Visual C++为例子。

    Visual C++
    Borland C
    GNU C (Cygwin or MinGW)

3.如果通过汇编的方式编译,需要安装汇编语言编译器。MASM NASM都可以。如果速度要求不高,可以不用汇编的方式编译,即不需要安装。MASM一般由VC++自带,Windows NT 4.0 DDK aWindows 98 DDK也带有MASM。把XXXXXml.exeXXXXXml.err文件,提取出来,命名为ml.exeml.err,并把他们放到PATH路径中即可。

NASM可以免费获取,很多地方都可以下载到,如http://www.kernel.org/pub/software/devel/nasm/binaries/win32/

nasmw.exe文件也需要放到PATH路径中。

4.打开一个DOS窗口,输入:perl Configure VC-WIN32

5.如果使用MASM,接着输入:ms/do_masm

 如果使用NASM,接着输入:ms/do_nasm

如果不使用汇编语言编译器,输入:ms/do_ms

6.DOS窗口中接着输入:nmake -f ms/ntdll.mak

如果没有错误的话,编译就通过了,在out32dll目录下面就可以看到,生成的dll文件和可执行文件了。把他们放到,PATH环境变量对应的一个目录里就可以了。

 

 

转自http://21nw.com/2009/03/23

二.下载用于windowsOpenSSL

Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.

Powered by WP Greet Box

在网上找这个可以用在微软windows OpenSSL 是很困难的对于用于 Windows 64 位的则更加难找.

在股沟上经历了艰难困苦后, 我觉得提供一个可用于windows简单安装版的 OpenSSL供大家使用. 用起来很方便. 不需要再编译什么了就需要下载下面对应的文件即可.

OpenSSL缺省建成可没有版权之争的的128192256位加密方式, 能用就成了。

所有版本都是经过最新的OpenSSL-0.9.8e源程序编译而成,使用了微软的 Visual Studio 2005  MASM.

  • OpenSSL-0.9.8e for windows (Win32位版)
  • OpenSSL-0.9.8e for windows (X64 )

附原文供参考:

OpenSSL for windows

It’s difficult to find OpenSSL for windows, especially for 64 bit Windows.

after doing some googling, I decideded to providing a simple installation of OpenSSL for windows. It’s easy to use . No need to compile anything, just download the files below.

these are default builds of OpenSSL and enables the symmetric cipher ‘Camellia’ (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free use.

all versions are compiled from the newest version of OpenSSL-0.9.8e, in the assembly language routines with Microsoft Visual Studio 2005 and Microsoft MASM.

  • OpenSSL-0.9.8e for windows (Win32 version)
  • OpenSSL-0.9.8e for windows (X64 version)

Old version:

  • OpenSSL-0.9.8d for windows(win32 Version)
  • OpenSSL-0.9.8d for windows (X64 Version)

files included in the package are listed below:

文件结构

|bin
libeay32.dll, ssleay32.dll,openssl.exe, msvcr80.dll(VC runtim library)
| include
|– — openssl
openssl head files
|lib
libeay32.lib,ssleay32.lib

if you find it useful, a time saver,or even just mildly interesting,then my effort was worth it.

if you have any suggestions on how to improve it, I’d love to hear it.

link to this page: http://www.deanlee.cn/programming/openssl-for-windows/

Enjoy:)

你可能感兴趣的:(windows,汇编,Microsoft,perl,编译器,Borland)