Ask to log in to update certificate if needed.

ProviderAPI from debug build uses an invalid certificate the first time
it tries to download a new cert, just to test this.
Remove the testing code from debug ProviderAPI.
Merge branch 'bug/JSON-error-when-updating-client-certificate-#6364' into develop
Merge branch 'develop' into release-0.8.0
0.8.0-RC7