Skip to content
Snippets Groups Projects
Commit cf04ce84 authored by NOUMANE's avatar NOUMANE
Browse files

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

parent 6c4ef8ce
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -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