This documentation is for WSO2 Carbon 4.4.0. View documentation for the latest release.
Page Comparison - Encrypting Passwords with Cipher Tool (v.34 vs v.35) - Carbon 4.4.0 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Download and install WSO2 ESB.
  2. Open a command prompt and navigate to the <PRODUCT_HOME>/bin folder.
  3. Execute the Cipher Tool using the following command:

    Code Block
  4. You will be asked to enter the primary key password, which is by default 'wso2carbon'. Enter the password and proceed.
  5. You will now be asked to enter the plain text password that you want to encrypt. Enter the following element as the password and proceed:

    Code Block
    Enter Plain Text Value :amqp://admin:[email protected]/carbon?brokerlist
  6. You will receive the encrypted value as shown below. For example:

    Code Block
    Encrypted value is: 
  7. Open the file, stored in the <ESB_HOME>/repository/conf/security folder.

  8. Add the encrypted password against the secret alias as shown below.

    Code Block
  9. Now, open the file, stored in the <ESB_HOME>/repository/conf folder and replace the plain text element with the alias of the encrypted value as shown below.

    Code Block
    # register some connection factories
    # connectionfactory.[jndiname] = [ConnectionURL]
    # register some queues in JNDI using the form
    # queue.[jndiName] = [physicalName]
    queue.MyQueue = example.MyQueue
    # register some topics in JNDI using the form
    # topic.[jndiName] = [physicalName]
    topic.MyTopic = example.MyTopic