Skip to content
Snippets Groups Projects
Commit bffa9448 authored by NOUMANE's avatar NOUMANE Committed by Makhtar DIAGNE
Browse files

[US TRTL-246] modification of SSL configuration for Interco

parent 154bfcf9
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ public class BaseWebClientFactory implements WebClientFactory {
SslContextBuilder sslContextBuilder = SslContextBuilder.forClient();
sslContextBuilder = sslContextBuilder.clientAuth(ClientAuth.NONE);
if (ks != null) {
if (ks != null && restClientConfig.isKeystoreNeeded()) {
sslContextBuilder = sslContextBuilder.keyManager(createKeyManagerFactory(ks.getType(), ks.getKeyPath(), ks.getKeyPassword().toCharArray()));
}
......
......@@ -59,6 +59,8 @@ public class RestClientConfiguration {
private boolean secure;
private boolean keystoreNeeded = true;
private SSLConfiguration sslConfiguration;
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment