Fix copy/paste error that broke crl handling
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 22 Jun 2011 17:11:03 +0000 (17:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 22 Jun 2011 17:11:03 +0000 (17:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138555 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
webapps/docs/changelog.xml

index fb36edc..4454093 100644 (file)
@@ -508,17 +508,23 @@ public class JSSESocketFactory implements ServerSocketFactory, SSLUtil {
 
     @Override
     public TrustManager[] getTrustManagers() throws Exception {
-        String keystoreType = endpoint.getKeystoreType();
-        if (keystoreType == null) {
-            keystoreType = defaultKeystoreType;
+        String truststoreType = endpoint.getTruststoreType();
+        if (truststoreType == null) {
+            truststoreType = System.getProperty("javax.net.ssl.trustStoreType");
         }
-
-        String algorithm = endpoint.getAlgorithm();
+        if (truststoreType == null) {
+            truststoreType = endpoint.getKeystoreType();
+        }
+        if (truststoreType == null) {
+            truststoreType = defaultKeystoreType;
+        }
+        
+        String algorithm = endpoint.getTruststoreAlgorithm();
         if (algorithm == null) {
-            algorithm = KeyManagerFactory.getDefaultAlgorithm();
+            algorithm = TrustManagerFactory.getDefaultAlgorithm();
         }
 
-        return getTrustManagers(keystoreType, endpoint.getKeystoreProvider(),
+        return getTrustManagers(truststoreType, endpoint.getKeystoreProvider(),
                 algorithm);
     }
 
index 572d796..9bab1e8 100644 (file)
         Various refactorings to reduce code duplication and unnecessary code in
         the connectors. (markt)
       </update>
+      <fix>
+        Correct a regression introduced in Apache Tomcat 7.0.11 that broke
+        certificate revokation list handling. (markt) 
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">