一、下载OpenSSL
http://www.openssl.org/source/openssl-1.0.2j.tar.gz
二、解压安装
yum -y install gcc
cd /usr/local
tar -xzf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config --prefix=/usr/local/openssl
./config -t
make
make install
cd /usr/local
ldd /usr/local/openssl/bin/openssl
三、测试
#能出现版本号则成功
openssl version