Method one, compile installation OpenSSL
2.1. Preparation work
System version: Ubuntu-10.10-server-i386
Update Source: Apt-get update
Upgrade Software: Apt-get upgrade
Update system: Apt-get Dist-upgrade
2.2, view OpenSSL version
Some Linux systems have been installed by default OpenSSL 0.9.8, especially VPS are generally installed.
The code is as follows |
Copy Code |
OpenSSL version-a |
2.3, the installation of the basic compilation environment
The code is as follows |
Copy Code |
Apt-get Install Build-essential |
2.3. Compile and install Zlib Library
The code is as follows |
Copy Code |
wget http://zlib.net/zlib-1.2.5.tar.gz TAR-ZXF zlib-1.2.5.tar.gz CD zlib-1.2.5/ ./configure--prefix=/usr/local Make && make install |
2.4, uninstall the old version OpenSSL
The code is as follows |
Copy Code |
Apt-get purge OpenSSL Rm-rf/etc/ssl #删除配置文件 2.5, compile and install OpenSSL Prefix is the installation directory, Openssldir is the configuration file directory, also recommended to install two times, shared role is to generate dynamic connection library.
wget ftp://ftp.openssl.org/source/openssl-1.0.0c.tar.gz TAR-ZXF openssl-1.0.0c.tar.gz CD openssl-1.0.0c/ ./config--prefix=/usr/local--openssldir=/usr/local/ssl Make && make install ./config Shared--prefix=/usr/local--openssldir=/usr/local/ssl Make clean Make && make install |
into a
method Two,
Installation of the OpenSSL library
Official website: http://www.openssl.org
Download page: http://www.openssl.org/source/
Select the latest version of the download
Http://www.openssl.org/source/openssl-1.0.0a.tar.gz
Extract:
TAR–ZXVF openssl-1.0.0d.tar.gz, extract directory for: openssl-1.0.0d
Then go to the CD openssl-1.0.0d, configure, compile, install
Configuration
./configure or./config
Compile
Make
Installation
Make install