This is an automated email from the ASF dual-hosted git repository.
arshad pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4f2c450b25 AMBARI-26428: Fix Ambari Server Startup Failure with Jetty
SSL and Multiple SAN Entries (#3974)
4f2c450b25 is described below
commit 4f2c450b25483b5c176a1e5d3a780b8ab6a63373
Author: Basapuram Kumar <[email protected]>
AuthorDate: Wed Apr 2 14:34:05 2025 +0530
AMBARI-26428: Fix Ambari Server Startup Failure with Jetty SSL and Multiple
SAN Entries (#3974)
---
.../main/java/org/apache/ambari/server/controller/AmbariServer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
index 1c0aa67de8..8b4a3a20e9 100644
---
a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
+++
b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
@@ -631,7 +631,7 @@ public class AmbariServer {
https_config.setSendServerVersion(false);
// Secured connector - default constructor sets trustAll = true for certs
- SslContextFactory sslContextFactory = new SslContextFactory();
+ SslContextFactory sslContextFactory = new SslContextFactory.Server();
disableInsecureProtocols(sslContextFactory);
sslContextFactory.setKeyStorePath(keystore);
sslContextFactory.setTrustStorePath(truststore);
@@ -677,7 +677,7 @@ public class AmbariServer {
https_config.addCustomizer(new SecureRequestCustomizer());
https_config.setSecurePort(configs.getClientSSLApiPort());
- SslContextFactory contextFactoryApi = new SslContextFactory();
+ SslContextFactory contextFactoryApi = new SslContextFactory.Server();
disableInsecureProtocols(contextFactoryApi);
contextFactoryApi.setKeyStorePath(httpsKeystore);
contextFactoryApi.setTrustStorePath(httpsTruststore);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]