I have a JBoss server on my development machine. In the company where we work we have a proxy. I need to test the Google recaptcha. It uses https. I configured the proxy information in the system-properties
tag of the standalone.xml
file of JBoss, as below:
<system-properties>
<property name="http.proxyHost" value="xxxx"/>
<property name="http.proxyPort" value="8080"/>
<property name="http.proxyUser" value="xxxx"/>
<property name="http.proxyPassword" value="xxxx"/>
<property name="http.nonProxyHosts" value="localhost"/>
<property name="https.proxyHost" value="xxxx"/>
<property name="https.proxyPort" value="8080"/>
<property name="https.proxyUser" value="xxxx"/>
<property name="https.proxyPassword" value="xxxx"/>
<property name="https.nonProxyHosts" value="localhost"/>
</system-properties>
But when I run a call that tries to use the proxy, the server returns the following error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
What should I do?