OpenSSL >= 1.0.1 code example
Example: install openssl 1.0.2
# (Install compiling library Make)
sudo apt-get install make
# (Download the latest OpenSSL 1.0.2g binaries)
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
# (Extract the tar ball to the local directory)
tar -xzvf openssl-1.0.2l.tar.gz
# (Enter extracted OpenSSL directory)
cd openssl-1.0.2l
# (Configure binaries for compiling)
sudo ./config
# (install configured binaries)
sudo make install
# (This will create a sym link to the new binaries)
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
# (Used to check the version of the Current OpenSSL binaries)
openssl version -v