It's most likely signed by a self-signed (untrusted) certificate. The easiest way is to add this certificate to the cacerts
java keystore or add it to a custom store and run wsimport
with javax.net.ssl.trustStore
property set to the custom store.
- Go to url in Chrome and use the Security tab in Dev tools to export the certificate to a file.
- Use the
keystore
tool to import the certificate into cacerts
keystore.
In the terminal:
$JAVA_HOME/bin/keytool -import -alias MyCustomCert -keystore $JAVA_HOME/jre/lib/security/cacerts -file ~/path/to/saved/cert
or on Windows:
%JAVA_HOME%\bin\keytool -import -alias MyCustomCert -keystore %JAVA_HOME%\jre\lib\security\cacerts -file C:\whereever\the\file\is
Make sure JAVA_HOME environment variable is defined and the command prompt you're using has permission to write to the %JAVA_HOME%\jre\lib\security\cacerts
file.