getting below exception while trying to invoke the Rest service
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) .And getting the mentioned exception.
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.
we set this DSS value as false and the issue got fixed.
Now one more rest server is throwing exception: javax.net.ssl.SSLException: hostname in certificate didn't match: !=
Issue background: Earlier we did not use any trust store for connecting with this application except apitrustgenerator.
There was one network change to strengthen the cipher because of which external application is ecpecting the certificate now.
We received the certificate from external application and we tried generating keystore from cert file and its throwing this error now.do we have to update trust store in our case? if yes, how do we create trust store?
what the might be the issue ?
I have enabled jvm arguments -Djavax.net.debug=ssl:handshake:data and got server log. Please find the attachment for the same.