Add support for HTTPS in sanity tests