geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r920169 - /geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
Date Mon, 08 Mar 2010 01:50:36 GMT
Author: xuhaihong
Date: Mon Mar  8 01:50:35 2010
New Revision: 920169

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

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

Modified: geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java?rev=920169&r1=920168&r2=920169&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandUnlockKeystore.java
Mon Mar  8 01:50:35 2010
@@ -135,9 +135,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::"
+            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