How to patch Ubuntu for Heartbleed
sudo apt-get update
sudo apt-get install -y libssl1.0.0 openssl
openssl version -aand confirm the "built on" date is >= 2014-04-07
sudo lsof -n | grep ssl | grep DELand restart all listed services.
Repeat #4 until no results are returned.
In place of the lsof/grep, for similar effect.