For some proxies exception "java.net.ProtocolException: Server redirected too many times" might mean incorrect username or password.
Can Sonar run in HTTPS mode
No. But you can run Sonar in a standard HTTPS infrastructure using reverse proxy (note also that URL rewriting is necessary till the following ticket is fixed: SONAR-2296).
I have locked myself out