From ccc74a2313a543f71dbb6e64a4808347e2e0e36e Mon Sep 17 00:00:00 2001 From: gtully Date: Fri, 20 Nov 2020 13:28:42 +0000 Subject: [PATCH] ARTEMIS-2938 - disable openwire host verification to work with existing certs --- .../artemis/tests/integration/security/SecurityTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java index d78aa14034..83c813a10d 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/SecurityTest.java @@ -233,7 +233,7 @@ public class SecurityTest extends ActiveMQTestBase { server.start(); - ActiveMQSslConnectionFactory factory = new ActiveMQSslConnectionFactory("ssl://localhost:61616"); + ActiveMQSslConnectionFactory factory = new ActiveMQSslConnectionFactory("ssl://localhost:61616?verifyHostName=false"); factory.setTrustStore("client-side-truststore.jks"); factory.setTrustStorePassword("secureexample"); factory.setKeyStore("client-side-keystore.jks"); @@ -273,7 +273,7 @@ public class SecurityTest extends ActiveMQTestBase { server.getConfiguration().addAcceptorConfiguration(new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, params)); server.start(); - ActiveMQSslConnectionFactory factory = new ActiveMQSslConnectionFactory("ssl://localhost:61616"); + ActiveMQSslConnectionFactory factory = new ActiveMQSslConnectionFactory("ssl://localhost:61616?verifyHostName=false"); factory.setUserName("test-user"); factory.setTrustStore("client-side-truststore.jks"); factory.setTrustStorePassword("secureexample");