Adding ssl code