From 93dcf25d33fe9f4cb581c33a220aba41e99ea5db Mon Sep 17 00:00:00 2001 From: herbert Date: Wed, 28 Apr 2021 09:54:37 +0200 Subject: [PATCH] MINIFI-552: Fix new SSL SAN Behaviour from new Jetty Version Signed-off-by: Matthew Burgess This closes #5036 --- .../org/apache/nifi/minifi/c2/api/properties/C2Properties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minifi/minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/properties/C2Properties.java b/minifi/minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/properties/C2Properties.java index f249583442..cf8e462f56 100644 --- a/minifi/minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/properties/C2Properties.java +++ b/minifi/minifi-c2/minifi-c2-api/src/main/java/org/apache/nifi/minifi/c2/api/properties/C2Properties.java @@ -63,7 +63,7 @@ public class C2Properties extends Properties { } public SslContextFactory getSslContextFactory() throws GeneralSecurityException, IOException { - SslContextFactory sslContextFactory = new SslContextFactory(); + SslContextFactory sslContextFactory = new SslContextFactory.Server(); KeyStore keyStore = KeyStore.getInstance(properties.getProperty(MINIFI_C2_SERVER_KEYSTORE_TYPE)); Path keyStorePath = Paths.get(C2_SERVER_HOME).resolve(properties.getProperty(MINIFI_C2_SERVER_KEYSTORE)).toAbsolutePath(); logger.debug("keystore path: " + keyStorePath);