Add HTTPS support.
Add HTTPS tests.