From bc55168e7130b64e3285e59cd2d3f793d1b5efee Mon Sep 17 00:00:00 2001 From: achmelo <37397715+achmelo@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:18:40 +0200 Subject: [PATCH] fix: respect ssl strictness in enabler (#3813) Signed-off-by: ac892247 --- .../apiml/eurekaservice/client/impl/ApiMediationClientImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/onboarding-enabler-java/src/main/java/org/zowe/apiml/eurekaservice/client/impl/ApiMediationClientImpl.java b/onboarding-enabler-java/src/main/java/org/zowe/apiml/eurekaservice/client/impl/ApiMediationClientImpl.java index 41772fe861..aa50f746b4 100644 --- a/onboarding-enabler-java/src/main/java/org/zowe/apiml/eurekaservice/client/impl/ApiMediationClientImpl.java +++ b/onboarding-enabler-java/src/main/java/org/zowe/apiml/eurekaservice/client/impl/ApiMediationClientImpl.java @@ -159,6 +159,7 @@ private EurekaClient initializeEurekaClient( AbstractDiscoveryClientOptionalArgs args = new Jersey3DiscoveryClientOptionalArgs(); args.setSSLContext(factory.getSslContext()); + args.setHostnameVerifier(factory.getHostnameVerifier()); TransportClientFactories transportClientFactories = Jersey3TransportClientFactories.getInstance(); applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UP); return this.eurekaClientProvider.client(applicationInfoManager, clientConfig, transportClientFactories, args);