Support Article
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
SA-44186
Summary
SSLPeerUnverifiedException when connecting to the REST endpoint. REST endpoint is using TLS v1.2.
Error Messages
com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
Steps to Reproduce
- Create a Connect-REST rule.
- Create a truststore rule in the Connect-REST rule and import the REST Endpoint certificates.
- Execute the Connect-REST to connect to a TLS v1.2 or TLS v1.1 version enabled Endpoints.
Root Cause
A defect in Pegasystems’ code or rules. The out-of-the-box invokeaxis2 activity had the hardcoded protocol value of SSL.
Resolution
Perform the following local-change:
- Ensure the truststore contains the complete signer certificates chain (the Intermediate and the Root certificates)
- Edit the out-of-the-box pyInvokeRESTConnector activity.
To
String protocol = "SSL_TLSv2";
Published February 11, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.