Answer the question
In order to leave comments, you need to log in
How to set up ssl via rest?
A dynamic SSL configuration has been created on IBM WebSphere, which embeds a certificate in outgoing requests, there is no need to write paths to jks in the code. How to set up sending the rest of the request so that the httpClient does not look for certificates in the IBM jdk if the request comes in https? Below is test code
CloseableHttpClient httpClient = null;
HttpClientBuilder builder = HttpClientBuilder
.create()
.useSystemProperties();
httpClient = builder.build();
HttpPost request = new HttpPost("https://test.org:8081/add");
// add request headers
request.addHeader("custom-key", "rev");
request.addHeader(HttpHeaders.USER_AGENT, "lebot");
CloseableHttpResponse response = httpClient.execute(request);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question