Question
Connect REST:-"** Caught unhandled exception: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated" ---7.1.9
Hi,
By using Connect-Rest ,Unable to make connectivity to the authenticated service ,as getting the below exception.
** Caught unhandled exception: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.
After refer the couple of articles ,it's a bug with pega operating system .
Couple of articles in PDN provides the resolution for this issue ,but i was confused by having different approaches .
Approach 1:- I saw a post saying that this issue was addressed in SR-A3349. Has it been addressed in 7.1.9 version ?
Approach 2:-there is a post saying that the following JVM arguments needs to be added to the environment. How to do that ?
-Djavax.net.ssl.keyStore=C:/tomcat/client_keystore.keystore
-Djavax.net.ssl.keyStorePassword=client_keystore_pw_mypassword
-Djavax.net.ssl.trustStore=C:/tomcat/client_truststore.keystore
-Djavax.net.ssl.trustStorePassword= client_truststore_pw_mypassword
Approach 3:- I could see one more article in PDN for the same issue.
https://pdn.pega.com/support-articles/error-peer-not-authenticated-on-connect-rest-request.
Please suggest me the best approach for 7.1.9 version.
Solution suggested in Approach 1 has been now been fixed in the code in Pega 719.
Its good practice to let Pega manage the keystore for SSL handshake rather than passing them as a JVM arguments. Did you try passing the truststore in the Connect-REST's Service tab?