From: markt
Date: Sat, 3 May 2008 20:22:57 +0000 (+0000)
Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43094
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=43fb468e77d029014820da9971d2e0c4bfb3ff39;p=tomcat7.0
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43094
Support any keystoreType that doesn't need a file.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@653128 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java b/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
index 3928fbca9..9538edbac 100644
--- a/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
+++ b/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
@@ -310,7 +310,7 @@ public class JSSESocketFactory
InputStream istream = null;
try {
ks = KeyStore.getInstance(type);
- if(! "PKCS11".equalsIgnoreCase(type) ) {
+ if(!("PKCS11".equalsIgnoreCase(type) || "".equalsIgnoreCase(path))) {
File keyStoreFile = new File(path);
if (!keyStoreFile.isAbsolute()) {
keyStoreFile = new File(System.getProperty("catalina.base"),
diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml
index 1dba1fd20..5445967fb 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -655,7 +655,9 @@
The pathname of the keystore file where you have stored the
server certificate to be loaded. By default, the pathname is
the file ".keystore" in the operating system home
- directory of the user that is running Tomcat.
+ directory of the user that is running Tomcat. If your
+ keystoreType doesn't need a file use ""
+ (empty string) for this parameter.