Initial version of HTTPS support