1. I am using oracle java 11 2. Sping boot version-3 and 3.Rest template to call the API.
RestTemplate rest = new RestTemplate();

HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.set("api-key",key);
HttpEntity<String> entity = new HttpEntity<>("body", httpHeaders);
ResponseEntity<String> resp = rest.exchange(url, HttpMethod.GET, entity, String.class);

I have tried the below steps to solve the problem.

  1. Uploaded the certificates using InstallCert.java to the java cacerts location.

  2. I can see the success message for the certificate upload.

  3. Restarted the application and hit the URL again.

Even after trying the above solution still get the Same exception. I have tried the solution given for the issue on StackOverflow but the result is the same.

0

There are 0 best solutions below