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"/>
/////////////
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