From: markt Date: Wed, 16 Dec 2009 11:17:30 +0000 (+0000) Subject: Make SSL config JVM neutral. Based on a suggestion from Ivan. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0e1c3cea55a1eeece08d4c85be8d295218456b18;p=tomcat7.0 Make SSL config JVM neutral. Based on a suggestion from Ivan. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@891190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java index 7796e71ee..705c95518 100644 --- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java +++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java @@ -23,6 +23,8 @@ import java.util.StringTokenizer; import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; +import javax.net.ssl.KeyManagerFactory; + import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.IntrospectionUtils; @@ -453,7 +455,7 @@ public abstract class AbstractEndpoint { // -------------------- SSL related properties -------------------- - private String algorithm = "SunX509"; + private String algorithm = KeyManagerFactory.getDefaultAlgorithm(); public String getAlgorithm() { return algorithm;} public void setAlgorithm(String s ) { this.algorithm = s;} diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml index 6466d9342..f9b4323de 100644 --- a/webapps/docs/config/http.xml +++ b/webapps/docs/config/http.xml @@ -688,10 +688,11 @@ -

The certificate encoding algorithm to be used. This defaults to the Sun - implementation (SunX509). For IBM JVMs you should use the - value IbmX509. For other vendors, consult the JVM - documentation for the correct value.

+

The certificate encoding algorithm to be used. This defaults to + KeyManagerFactory.getDefaultAlgorithm() which returns + SunX509 for Sun JVMs. IBM JVMs return + IbmX509. For other vendors, consult the JVM + documentation for the default value.