Add option for HTTPS.

Adds an option to authenticate using HTTPS.