Skip to content

Commit

Permalink
IS-167 Hostname verification disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-lindstrom committed Oct 26, 2023
1 parent daf1399 commit c4be72d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import org.apache.commons.lang3.StringUtils;
import org.apache.hc.client5.http.classic.HttpClient;
import org.apache.hc.client5.http.ssl.DefaultHostnameVerifier;
import org.apache.hc.client5.http.ssl.NoopHostnameVerifier;

import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
Expand Down Expand Up @@ -206,7 +206,7 @@ else if (StringUtils.isNotBlank(this.file)) {
protected HttpClient createHttpClient() {
try {
final List<TrustManager> managers = Arrays.asList(HttpClientSupport.buildNoTrustX509TrustManager());
final HostnameVerifier hnv = new DefaultHostnameVerifier();
final HostnameVerifier hnv = new NoopHostnameVerifier();

HttpClientBuilder builder = new HttpClientBuilder();
builder.setUseSystemProperties(true);
Expand Down

0 comments on commit c4be72d

Please sign in to comment.