You have two solutions to fix this problem:
The first one is to add the certification to the JVM. refer to this link:https://docs.oracle.com/javase/tutorial/security/toolsign/rstep2.html.
The second if you are using a java httpClient in order to invoke the secured web service so you should ignore this certificate so you should configure this by code.
Refer to this example here i'm using RestTemplate of spring in order to invoke rest web services and ignoring the certification.
Example:
@Bean
public RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException{
TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true;
SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom()
.loadTrustMaterial(null, (org.apache.http.ssl.TrustStrategy) acceptingTrustStrategy).build();
SSLConnectionSocketFactory csf = new
SSLConnectionSocketFactory(sslContext);
CloseableHttpClient httpClient =
HttpClients.custom().setSSLSocketFactory(csf).build();
HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();
requestFactory.setHttpClient(httpClient);
return new RestTemplate(requestFactory);
}