ProviderAPI.getNewCert fixed in release.

Reproduced the refactoring done in debug.
Remove 2 unused methods.
Merge branch 'bug/JSON-error-when-updating-client-certificate-#6364' into develop