Implemented SSL support