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);
|
||||
}
|
||||
});
|
||||
SslContext sslContext = SslContextBuilder.forClient().build();
|
||||
httpClient.secure(t -> t.sslContext(sslContext));
|
||||
SslContext sslContext = config.getCredentials().initSslContext();
|
||||
httpClient = httpClient.secure(t -> t.sslContext(sslContext));
|
||||
}
|
||||
} else if (!config.isUseSimpleClientHttpFactory()) {
|
||||
if (CredentialsType.CERT_PEM == config.getCredentials().getType()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user