Skip to content

Commit

Permalink
Merge pull request apache#4448 from hansva/main
Browse files Browse the repository at this point in the history
fix truststore issue in rest
  • Loading branch information
hansva authored Oct 18, 2024
2 parents 0c2454f + 5051b75 commit db80159
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,9 @@ protected Object[] callRest(Object[] rowData) throws HopException {
.withConfig(data.config)
.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);

if (!Utils.isEmpty(data.trustStoreFile)) {
clientBuilder.sslContext(data.sslContext);
}

// Ignore SSL is selected disable hostname verifier
if (meta.isIgnoreSsl()) {
if (meta.isIgnoreSsl() || !Utils.isEmpty(data.trustStoreFile)) {
clientBuilder.hostnameVerifier((s1, s2) -> true);
clientBuilder.sslContext(data.sslContext);
}

client = clientBuilder.build();
Expand Down

0 comments on commit db80159

Please sign in to comment.