First version of HTTPS support