Support HTTPS remote URIs.

Fix support for HTTPS remote URIs.