geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r920171 - /geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
Date Mon, 08 Mar 2010 01:52:40 GMT
Author: xuhaihong
Date: Mon Mar  8 01:52:39 2010
New Revision: 920171

URL: http://svn.apache.org/viewvc?rev=920171&view=rev
Log:
GERONIMO-5156 Command line utility to unlock a keystore and private key (Patch from Ashish
Jain)

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java?rev=920171&r1=920170&r2=920171&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
Mon Mar  8 01:52:39 2010
@@ -134,9 +134,9 @@
      * Returns the key store password
      */
     private String getKeyStorePassword(Properties properties, String keyStoreName) throws
DeploymentException {
-        String keyStorePassword = properties.getProperty("keyStorePassword");
+        String keyStorePassword = properties.getProperty(keyStoreName);
         if (keyStorePassword == null) {
-            throw new DeploymentException("No keyStorePassword attribute named " + "keyStorePassword"
+ "exists in tke kyeStoreTruststore password properties file::" + System.getProperty(KEYSTORE_TRUSTSTORE_PASSWORD_FILE,
DEFAULT_KEYSTORE_TRUSTSTORE_PASSWORD_FILE));
+            throw new DeploymentException("No keyStorePassword attribute named " + keyStoreName
+ " exists in the kyeStoreTruststore password properties file::" + System.getProperty(KEYSTORE_TRUSTSTORE_PASSWORD_FILE,
DEFAULT_KEYSTORE_TRUSTSTORE_PASSWORD_FILE));
         }
         return (String) EncryptionManager.decrypt(keyStorePassword);
     }



Mime
View raw message