Add ability to use ssl