Adding SSL to http connections