{"id":3704,"date":"2014-11-06T08:18:14","date_gmt":"2014-11-06T00:18:14","guid":{"rendered":"http:\/\/rmohan.com\/?p=3704"},"modified":"2014-11-06T08:18:14","modified_gmt":"2014-11-06T00:18:14","slug":"encrypting-the-id-and-password-for-websphere-application-server","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3704","title":{"rendered":"Encrypting the ID and Password for Websphere Application Server"},"content":{"rendered":"<p>By default, you need to supply the ID and password when starting up\/shutting down the deployment manager, node or application server. Example of the command as below<\/p>\n<p>Deployment Manager<br \/>\n\/\/bin\/startManager.sh -username XXX -password XXX<\/p>\n<p>Node<br \/>\n\/\/bin\/startNode.sh -username XXX -password XXX<\/p>\n<p>Application Server<br \/>\n\/\/bin\/startServer.sh -username XXX -password XXX<\/p>\n<p>The steps to encrypt the password and ID is as follows.<\/p>\n<p>Insert the ID and password in clear text into the SOAP properties file at \/\/properties\/soap.client.props. <\/p>\n<p># grep SOAP.login soap.client.props | grep -v &#8220;#&#8221;<br \/>\ncom.ibm.SOAP.loginUserid=wasadm<br \/>\ncom.ibm.SOAP.loginPassword=wasadm<br \/>\ncom.ibm.SOAP.loginSource=prompt<\/p>\n<p>We use the IBM provided script to encode the password.<\/p>\n<p>\/\/bin\/PropFilePasswordEncoder.sh \/\/profiles\/default\/properties\/soap.client.props com.ibm.SOAP.loginPassword -Backup<\/p>\n<p>Taking a look at the same property file again, the password is now encrypted.<\/p>\n<p># grep SOAP.login soap.client.props | grep -v &#8220;#&#8221;<br \/>\ncom.ibm.SOAP.loginUserid=wasadm<br \/>\ncom.ibm.SOAP.loginPassword={xor}Es4zPjwS<br \/>\ncom.ibm.SOAP.loginSource=prompt<\/p>\n<p>Now, we can start up websphere and shut down without using the password.<\/p>\n<p>su wasadm -c &#8220;\/\/bin\/startManager.sh&#8221;<br \/>\nsu wasadm -c &#8220;\/\/bin\/startNode.sh&#8221;<br \/>\nsu wasadm -c &#8220;\/\/bin\/startServer.sh &#8221;<\/p>\n<p>su wasadm -c &#8220;\/\/bin\/stopManager.sh&#8221;<br \/>\nsu wasadm -c &#8220;\/\/bin\/stopNode.sh&#8221;<br \/>\nsu wasadm -c &#8220;\/\/bin\/stopServer.sh &#8221;<br \/>\nend.<\/p>\n<p>======================<\/p>\n<p>Some trival.<br \/>\nHow come IBM prefers to use XOR instead of some stronger algorithm like how weblogic uses 3DES? XOR is good enough only to prevent casual snooping. <\/p>\n<p>Someone demonstrated that with a online decoder<\/p>\n<p>http:\/\/www.poweredbywebsphere.com\/decoder.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, you need to supply the ID and password when starting up\/shutting down the deployment manager, node or application server. Example of the command as below<\/p>\n<p>Deployment Manager \/\/bin\/startManager.sh -username XXX -password XXX<\/p>\n<p>Node \/\/bin\/startNode.sh -username XXX -password XXX<\/p>\n<p>Application Server \/\/bin\/startServer.sh -username XXX -password XXX<\/p>\n<p>The steps to encrypt the password and ID [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3704"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3704"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3704\/revisions"}],"predecessor-version":[{"id":3705,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3704\/revisions\/3705"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}