javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Getting the exception "javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" when trying to invoke rest connector using trust store and key store.
Issue background : we are facing issue with existing Rest connector which was working fine earlier. All of sudden, connector is not able to access the external application URL.
We checked with external application if they do any changes on their side. Unfortunately, there is no change from external application team,WAS/INFRA team and network team as well.
Steps to Reproduce
1.test the existing rest connector which was working fine earlier
2.getting the error when service hit occured "javax.net.ssl.SSLPeerUnverifiedException"
Caught unhandled exception: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
We tried changing TLS version to 1.2 which is not working fine
tried giving linux server path of instead of local file path in keystore which is also not working
Could you please verify invoking the External-Service from Rest client using the certificate added in trust store if it gives error then there is a chance to check the certificate whether it is valid or not or expired. if it is working fine then raise a SR and submit to GCS.
getting below exception while trying to invoke the one of Rest services
exception: javax.net.ssl.SSLException: hostname in certificate didn't match: !=
Issue background : Rest service is been accessed earlier without any truststore\keystore. Now there was change from infra side(security reasons) because of which we will have to configured new truststore and keystore.
We tried creating jks file for the same and tried configuring truststore and then keystore(trial & error) .
Kindly advise what should be configured in trust store and keystore? what is the things we are missing here?
Please note that we did DSS settings https/allowAllHostnames as false.