|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Encrypt and decrypt passwords in Properties file for JavaCN |
« View previous topic :: View next topic » |
Author |
Message
|
EricCox |
Posted: Fri Jan 24, 2014 3:17 pm Post subject: Encrypt and decrypt passwords in Properties file for JavaCN |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
To all,
We need to build message flows which use Java Compute Nodes with external properties files. What is suggested method for encrypting and decrypting passwords in the properties files so that the sensitive uname/pwd is not exposed in clear text yet is available/able to be pulled into the JCN and used for authentication?
Thanks,
EMC |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jan 25, 2014 3:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Eric,
Use the configurable setup in broker
username= identity:username
password = identity:passsword
and setmqsidbparms -n identity -u user -p password.
This automatically encrypts the password...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Jan 25, 2014 4:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
FJ - mqsisetdbparms values are obfuscated but not encrypted. It's also not clear, off the top of my head, that you can access them from a JCN as usable values. i.e. that there's a Java method that will return a username/password from an identity.
So I don't know that either of those things help.
If EricCox is trying to set the username/password for any of the predefined nodes that can use setdbparms values, then yes you're correct that he should use that instead of manually supplying the credentials.
Otherwise you need to "normal" java methods to encrypt and decrypt data that is stored in files. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|