Fixed ssl not being setup correctly