TbHttpClient - fixed proxy ssl configuration
This commit is contained in:
parent
a746cf2793
commit
b6cfc32b6b
@ -118,8 +118,8 @@ public class TbHttpClient {
|
|||||||
o.username(proxyUser).password(u -> proxyPassword);
|
o.username(proxyUser).password(u -> proxyPassword);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
SslContext sslContext = SslContextBuilder.forClient().build();
|
SslContext sslContext = config.getCredentials().initSslContext();
|
||||||
httpClient.secure(t -> t.sslContext(sslContext));
|
httpClient = httpClient.secure(t -> t.sslContext(sslContext));
|
||||||
}
|
}
|
||||||
} else if (!config.isUseSimpleClientHttpFactory()) {
|
} else if (!config.isUseSimpleClientHttpFactory()) {
|
||||||
if (CredentialsType.CERT_PEM == config.getCredentials().getType()) {
|
if (CredentialsType.CERT_PEM == config.getCredentials().getType()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user