Reinstate HTTPS support.

@jpasichnyk