We have an Android app talking to a https server. It was all working until the architecture team change the https certificate on the server. Now when the user tries to login it will return the following error:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
I am not familiar with SSL but my guess is that the authentication failed because the old certificate on the device doesn't match with new server one. My questions are:
- If the user uninstall/reinstall the app, would it work?
- If not then how can we manually remove the https certificate on the device?
- Can we make change to the code to prevent this from happening in the future?