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