How to change hard-coded key for password encryption to config-based key
SOI 4.2 CU2
Please follow the below steps to test password encryption with a configurable key:-
1. Stop All the SOI services
2. Install latest CU4 patch
3. Add attached encrypt.properties at below location where we can configure salt which will use for encryption and decryption
ActiveMQ = CA\SOI\apache-activemq\conf\
In All SOI Services (Manager,UI,MQ,IFW,Event Management) = CA\SOI\jsw\conf\encrypt.
4. Encrypt new password using tools/EncryptSAMCreds.bat command
5. Provide new encrypted password (DB and samuser password) in below configuration file.
CA\SOI\SamUI\conf\jaas.xml
CA\SOI\SamUI\webapps\sam\eem-
CA\SOI\tomcat\registry\
CA\SOI\tomcat\webapps\sam\eem-
CA\SOI\SamUI\webapps\sam\
CA\SOI\tomcat\webapps\sam\
CA\SOI\tomcat\lib\hibernate.
CA\SOI\apache-activemq\conf\
CA\SOI\EventManagement\
CA\SOI\resources\
CA\SOI\resources\
CA\SOI\tomcat\lib\
CA\SOI\tomcat\lib\jmsconnect.
CA\SOI\wso2registry\
CA\SOI\tomcat\registry\
CA\SOI\tomcat\registry\
CA\SOI\tomcat\registry\
CA\SOI\tomcat\registry\
6. Start SOI services.