- 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.
Uploaded the certificates using InstallCert.java to the java cacerts location.
I can see the success message for the certificate upload.
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.