Added SSL functionality and a certificate