OpenSSL简介

使用Erlang连接MySQL的时候

突然弹出个警告:

crypto not found

OpenSSL library maybe not install in your computer

网上搜了写资料

如下:

*************************************************************************

在很多加密环境中,我们都需要使用OpenSSL。很多时候我们都不知道OpenSSL到底是什么东西。

准确的来说,OpenSSL只是一套工具包软件,用于生成X.509协议中所使用的密钥,公钥等文件。

举例来说,我们都知道HTTP和HTTPS所代表不同的意思,HTTPS表示使用加密方式对数据进行传输,
但是数据是怎么样进行加密的呢?这里有几个加密协议的版本SSL V2, SSL V3和TLS。这个加密方
式的处理是在应用服务器和客户端之间进行的。要实现一个完整的加密方式,我们需要读取服务器
的证书来使客户端和服务器端能进行握手。

在这个过程中OpenSSL项目的地位又是什么呢?

举例来说,我们都知道如果需要Apache支持SSL协议,我们需要是用Apache的SSL模块。这个模块叫
做OpenSSL模块。因为这个名称和OpenSSL这个项目的名称是一致的,我们就很容易混淆Apache中使用的Ope
nSSL模块和OpenSSL项目。

其实OpenSSL项目只是一些小程序,用来生产Apache服务器中所需要使用的密钥,证书等文件。和Ap
ache所使用的OpenSSL模块是完全不同的东西。因为Apache服务器使用了OpenSSL项目所提供的功能,
因此Apache就将这个模块成为OpenSSL模块了。

不知道到这里大家是不是明白了。

简单把OpenSSL项目理解为实现X.509加密协议所使用的相关文件而开发的小工具箱,同时OpenSSL项目
也是用C语言开发的程序,可以在操作系统环境中被其他程序调用,因此我们也可以将其理解为类库和接口了。

 

转载来至http://forums.hawebs.net/computer/viewthread.php?tid=144

 

*************************************************************************

OpenSSL简介

    SSL,Security Socket Layer,是一个安全传输协议,在Internet网上进行数据保护和身份确认。OpenSSL是一个开放源代码的实现了SSL及相关加密技术的软件包,由加拿大的Eric Yang等发起编写的。OpenSSL的官方网站为http://www.openssl.org/,源代码可以从ftp://ftp.openssl.org/source/上下载,也可以从OpenSSL的镜像网站下载。

    以下是OpenSSL官方网站对该项目的介绍:

    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation. 
OpenSSL is based on the excellent SSLeay library developed by Eric A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions.

 

crypto是什么呢? 是OpenSSL 加密库(lib), 就这么简单....

posted @ 2010-08-20 12:56  麦飞  阅读(1126)  评论(0编辑  收藏  举报