Forums Register Login

java.lang.RuntimeException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

+Pie Number of slices to send: Send
Hi All,

When I am trying to connect to a thrid party api, using https protocol, I am getting the error as "java.lang.RuntimeException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated". But when i am doing the same with http protocol, it is working fine. Can anybody please suggest me on this..
1
+Pie Number of slices to send: Send
When we use HTTPS protocol, the server sends back its certificate which then gets verified with the trusted certs at client side. In HTTP connection this does not happen, which is why it works in your case.
I think in your case your client machine might not have server's cert as a trusted cert. Check your keystore.
+Pie Number of slices to send: Send
To better understand the problem you might want to enable ssl trace on your client.
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2883 times.
Similar Threads
configuration SSL in Tomcat
peer not authenticated
configuration SSL in Tomcat
Peer Not Verified exception
configuration SSL in Tomcat
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:18:09.