Adding ssl support