diff --git a/authn/saml/src/main/java/se/swedenconnect/signservice/authn/saml/config/MetadataProviderConfiguration.java b/authn/saml/src/main/java/se/swedenconnect/signservice/authn/saml/config/MetadataProviderConfiguration.java index 68956374..5bf0e158 100644 --- a/authn/saml/src/main/java/se/swedenconnect/signservice/authn/saml/config/MetadataProviderConfiguration.java +++ b/authn/saml/src/main/java/se/swedenconnect/signservice/authn/saml/config/MetadataProviderConfiguration.java @@ -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; @@ -206,7 +206,7 @@ else if (StringUtils.isNotBlank(this.file)) { protected HttpClient createHttpClient() { try { final List managers = Arrays.asList(HttpClientSupport.buildNoTrustX509TrustManager()); - final HostnameVerifier hnv = new DefaultHostnameVerifier(); + final HostnameVerifier hnv = new NoopHostnameVerifier(); HttpClientBuilder builder = new HttpClientBuilder(); builder.setUseSystemProperties(true);