MINIFI-552: Fix new SSL SAN Behaviour from new Jetty Version

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #5036
This commit is contained in:
herbert 2021-04-28 09:54:37 +02:00 committed by Matthew Burgess
parent a0655bff1a
commit 93dcf25d33
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
1 changed files with 1 additions and 1 deletions

View File

@ -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);