Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 3120 invoked from network); 26 Feb 2010 06:30:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2010 06:30:50 -0000 Received: (qmail 99886 invoked by uid 500); 26 Feb 2010 06:30:49 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 99748 invoked by uid 500); 26 Feb 2010 06:30:49 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 99741 invoked by uid 99); 26 Feb 2010 06:30:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 06:30:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2010 06:30:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A298E234C48D for ; Thu, 25 Feb 2010 22:30:28 -0800 (PST) Message-ID: <80082915.548241267165828664.JavaMail.jira@brutus.apache.org> Date: Fri, 26 Feb 2010 06:30:28 +0000 (UTC) From: "Ashish Jain (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-4896) Commands to a Secure JMX Connector require the SSL keyStorePassword to be specified on command line In-Reply-To: <57155078.1253916077846.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838726#action_12838726 ] Ashish Jain commented on GERONIMO-4896: --------------------------------------- Hi Shawn, Thanks for your comments. I will modify the patch as suggested by you. On the default KEYSTORE_TRUSTSTORE_PASSWORD_FILE GERONIMO-5146 takes care of that. I will further make one more addition through which the default password are picked automatically by the server w/o any need for user to specify any parameter. User will only have to specify the system properties if he is using custom keystore, truststore. Thanks Ashish > Commands to a Secure JMX Connector require the SSL keyStorePassword to be specified on command line > --------------------------------------------------------------------------------------------------- > > Key: GERONIMO-4896 > URL: https://issues.apache.org/jira/browse/GERONIMO-4896 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 2.1.5, 2.2, 3.0 > Reporter: Kevan Miller > Assignee: Shawn Jiang > Fix For: 2.1.5, 3.0, Wish List > > Attachments: 4896.patch, 4896_updated.patch, 4896_updated_21.patch, JavaAgent.jar, JvmOpts.java > > > To my knowledge, it is not possible to run a Geronimo command (e.g. deploy.sh deploy or gsh geronimo/stop-server) to a server with a secure JMX Connector (running SSL, without specifying the following Java system properties on the command line: > javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword > For example: > {code} > export GERONIMO_HOME=~/target/geronimo-jetty6-javaee5-2.2-SNAPSHOT > export JAVA_OPTS="-Djavax.net.ssl.keyStore=$GERONIMO_HOME/var/security/keystores/geronimo-default -Djavax.net.ssl.keyStorePassword=secret -Djavax.net.ssl.trustStore=$GERONIMO_HOME/var/security/keystores/geronimo-default -Djavax.net.ssl.trustStorePassword=secret" > $GERONIMO_HOME/bin/deploy.sh -u system -p manager --secure list-modules --stopped > {code} > javax.net.ssl.keyStorePassword causes a problem, since this means the keyStorePassword is available, in-the-clear, to someone inspecting executing processes. For example while a deploy command was active, someone could run 'ps auxww | grep deployer.jar' and discover the keyStorePassword for the KeyStore. > Geronimo should provide a mechanism, whereby users can specify the keyStorePassword without making that secret available to anyone inspecting processes running on the current system. Ideally, the password could be encrypted/obfuscated within a file (just as passwords can be encrypted/obfuscated in var/config/config.xml). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.