Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A57E9188A0 for ; Tue, 26 May 2015 12:34:16 +0000 (UTC) Received: (qmail 50607 invoked by uid 500); 26 May 2015 12:34:13 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 50572 invoked by uid 500); 26 May 2015 12:34:13 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 44220 invoked by uid 99); 26 May 2015 08:12:59 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.457 X-Spam-Level: *** X-Spam-Status: No, score=3.457 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=1.171] autolearn=disabled Date: Tue, 26 May 2015 00:54:14 -0700 (PDT) From: sp33dy To: users@activemq.apache.org Message-ID: <1432626854550-4696913.post@n4.nabble.com> Subject: Java password encryption MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Can anyone help me? I hate to cross post, but I've not had a single reply from the JBoss A-MQ forums. I believe A-MQ is kept inline with ActiveMQ, therefore I feel my question is probably valid here too. I've created a simple Java application that connects to ActiveMQ and sends/receives messages. A JBoss Fuse route listens and processes the other end. All well and good! However, I now need to prove the 'operational' side of the technology, for a review for my client of the technology. As part of this work, I need to do the following: 1) Encrypt the JAAS password vault 2) Encrypt the passwords in configuration/java code I successfully completed (1) and can see the user.properties file has the password encrypted. The Admin console continues to work as required. I can't get (2) to work. Despite restarting and trying different combinations of passwords, I can only get my Java code to connect with a PLAIN password. Is there a guide, document or tutorial to explain how to configure this? I tried passwords with (ENC) in front, wrapping and as ENC(....) with the encrypted string. All fail. Any help would be really appreciated. Kind regards Carl FYI, my original post there was: https://developer.jboss.org/thread/259041 -- View this message in context: http://activemq.2283324.n4.nabble.com/Java-password-encryption-tp4696913.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.