Chapter I.
1,: http://www.openssl.org/source/next a new version of OpenSSL, I am under the version is: openssl-1.0.0e.tar.gz
1.0.1G source package can be obtained by #wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
2. In the downloaded GZ directory, execute with command: TAR-XZF openssl-openssl-1.0.0e.tar.gz
3. Enter the extracted directory: openssl-1.0.0e [...] #cd openssl-1.0.0e
4, [... openssl-1.0.0e]#./config--prefix=/usr/local/openssl
5[...../openssl-1.0.0e]#./config-t
6[...../openssl-1.0.0e]# make Depend
7[...../openssl-1.0.0e]# cd/usr/local
8/usr/local]# ln-s OpenSSL SSL
9 in the last side of the/etc/ld.so.conf file, add the following:
/usr/local/openssl/lib
10...]# Ldconfig
11 Add OPESSL Environment variables:
In the last line of etc/'s profile, add:
Export Openssl=/usr/local/openssl/bin
Export path= $OPENSSL: $PATH: $HOME/bin
12 exit the command screen and log in again.
13, above OpenSSL installation is complete, the following for some inspection.
14 perform the following in turn:
[Email protected]/]# cd/usr/local
[Email protected] local]# Ldd/usr/local/openssl/bin/openssl
A message similar to the following will appear:
Linux-vdso.so.1 = (0x00007fff3bc73000)
libdl.so.2 =/lib64/libdl.so.2 (0x00007fc5385d7000)
libc.so.6 =/lib64/libc.so.6 (0x00007fc538279000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc5387db000)
15 Viewing paths
...] # which OpenSSL
/usr/local/openssl/bin/openssl
16 Viewing versions
...] # OpenSSL version
OpenSSL 1.0.0e 6 SEP 2011
Transferred from: http://hi.baidu.com/aotori/item/0050a122dbb9728c6f2cc373
Chapter II
Upgrade OpenSSL to version 1.0.1g
1. Get 1.0.1g source package via #wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
2. Installing OpenSSL
#tar ZXVF openssl-1.0.1g.tar.gz
#cd openssl-1.0.1g
#./config shared zlib
#make
#make Install
Mv/usr/bin/openssl/usr/bin/openssl. OFF
Mv/usr/include/openssl/usr/include/openssl. OFF
#cd/usr/bin
Ln-s/usr/local/ssl/bin/openssl OpenSSL
#cd/usr/include
Ln-s/usr/local/ssl/include/openssl OpenSSL
3. Configure the library file search path
#echo "/usr/local/ssl/lib" >>/etc/ld.so.conf
#ldconfig-V
4. Check the OpenSSL version number to verify that the installation is correct
#openssl version-a
You can see that the 1.0.1g version is a good one.
Installation of OpenSSL in Linux under the whole process