Authentication hangs on before SSL initialization