Fixes for HTTPS.