Upgrade OpenSSL to patch Heart Beat Bug on Ubuntu Server

Check the openssl version, if it’s less than OpenSSL 1.0.1g 7 Apr 2014 then continue

openssl version

Change to the tmp folder

cd /tmp

Download the latest openssl code

wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz

Uncompress it

tar zxvf openssl-1.0.1g.tar.gz

Step into the folder

cd openssl-1.0.1g

Prepare config ready for build


Build and Compile dependancy’s

make depend

Build and Compile OpenSSL


Test the Build

make test

Build, Compile and Install

make install

Make it Live

sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`

Check the openssl version

openssl version

Leave a Reply