Add support for secure connections (https)