Skip to content

Commit

Permalink
Merge pull request #168 from swedenconnect/feature/IS-167-hostname-ve…
Browse files Browse the repository at this point in the history
…rification

IS-167 Hostname verification disabled
  • Loading branch information
martin-lindstrom authored Oct 26, 2023
2 parents daf1399 + c4be72d commit f1a39c1
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 f1a39c1

Please sign in to comment.