Question

1
Replies
118
Views
Kris Krishna (KrisK491)
CIBC

CIBC
CA
KrisK491 Member since 2012 2 posts
CIBC
Posted: March 2, 2020
Last activity: March 27, 2020
Posted: 2 Mar 2020 9:42 EST
Last activity: 27 Mar 2020 5:39 EDT
Closed

javax.net.ssl.SSLPeerUnverifiedException

The following exception is thrown by prpServiceUtils (prpServiceUtils.sh / prpcServiceUtilsWrapper.xml)

REQUEST_EXECUTION_ERROR com.pega.pegarules.serviceclient.exception.PRPCServiceException: javax.net.ssl.SSLPeerUnverifiedException: Host name 'xx.xx.x.xx' does not match the certificate subject provided by the peer

/////////////

would like to have a custom implementation of javax.net.ssl.HostnameVerifier via JVM System property

for instance, in prpcServiceUtilsWrapper.xml

<jvmarg value="${jvm.arg.mem.max.temp}"/>               <jvmarg value="${jvm.arg.mem.maxpermsize.temp}"/>                         <jvmarg value="-Dlog4j.configurationFile=file:///${log4j2.file.location}"/>                         <jvmarg value="-Dlogfile.timestamp=${logfile.timestamp}"/>                        

                        <jvmarg value="-DDefaultHostnameVerifier=custom class of javax.net.ssl.HostnameVerifier"/>

                        <jvmarg value="-DHTTPClient.defaultHostnameVerifier=custom class of javax.net.ssl.HostnameVerifier"/>

/////////////

but, none of the JVM system property works in Java 8.x

any help on this, would be really appreciated.

thanks a lot in advance.

Kris

Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.