Enable https authentication

Allow authentication using https:// as well as http://