Fixes authentication issues by using https.