Linux system installation OpenSSL two ways

Source: Internet
Author: User
Tags install openssl openssl openssl library openssl version

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.