Tenho um servidor JBoss na minha máquina para testes em desenvolvimento. Na empresa onde trabalho temos um proxy. Estou precisando testar o recaptcha do Google. Ele usa https. Configurei as informações do proxy na tag system-properties
do arquivo standalone.xml
do JBoss, conforme abaixo:
<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>
Porém ao executar alguma chamada que tenta usar o proxy, o servidor me retorna o seguinte erro:
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
O que devo fazer?