A security vulnerability in OpenSSL has been found known as Heartbleed. It's important to update your local version of OpenSSL to correct this issue. Below are the steps you can follow and make sure that the patch is installed on your system, Please have your system backup ready prior to making any changes.

Patched versions of OpenSSL on the most popular distros. If you've compiled from source, you'll need to compile and reinstall version 1.0.1g. Alternately you can recompile previous versions with the OPENSSL_NO_HEARTBEATS flag enabled to close the vulnerability.

Ubuntu and Debian

Please check the current version of your OpenSSL

$ openssl version -a
OpenSSL 1.0.1e 11 Feb 2013
built on: Sat Mar  1 21:16:43 UTC 2014
platform: debian-amd64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
OPENSSLDIR: "/usr/lib/ssl"

Look at the version above. OpenSSL 1.0.1 through 1.0.1f (inclusive) are vulnerable.

Please run command to update and upgrade your systems


sudo apt-get update
sudo apt-get upgrade


During the systems upgrade, you may be given a window that warns you about the security issue, and lists services that utilize OpenSSL and need to be restarted to apply the patch. You can add any additional services, by matching the init.d script name in this field.

If you do not see the windows during upgrade, you have to manually restart any services that use OpenSSL.

After updating the system, run the following command again to confirm the newer build is in place.

openssl version -a
OpenSSL 1.0.1g 14 Mar 2012
built on: Mon Apr  7 20:33:29 UTC 2014



Check to see what your current OpenSSL version is:

openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Wed Jan  8 18:40:59 UTC 2014
platform: linux-x86_64
options:  bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
OPENSSLDIR: "/etc/pki/tls"
engines:  dynamic

Carefully check the version line. OpenSSL 1.0.1 through 1.0.1f (inclusive) are vulnerable.

  1. To update OpenSSL from the repositories, run:
yum -y install openssl

After updating the application, please run openssl version -a again to confirm the new build:

openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013
built on: Tue Apr  8 02:39:29 UTC 2014

Please manually restart any services that use OpenSSL.

Reissue All Certificates

As Heartbleed security bug has described that it allows hackers to read a portion of the memory on a vulnerable system, including private keys used in SSL key pairs, it's recomended that you reissue all key pairs. This can include keys used to create SSL certificates for web and mail servers. You may need to generate new CSRs and to reissue your SSL certificates.

Was this answer helpful? 125 Users Found This Useful (150 Votes)