Adding SSL support