Most of our extensions support password encryption. In order to use this service, please follow these steps exactly as specified. Once done, you will have to uncomment the
encryptedPassword and update them with the ones that you generate in the
For this case we will take Cassandra Monitoring Extension as a sample.
Navigate to your Machine Agent installation folder, and then head to the “
Now enter your Extension folder, or in our case, “
CassandraMonitor” and copy the name of the jar file. In our case : “
Open your terminal and navigate to the
Once you are in the folder. Make sure the jar file is present. In our case
Once you have verified all the details, run the following command. This command will give you your encrypted password.
java -cp "cassandra-monitoring-extension.jar" com.appdynamics.extensions.crypto.Encryptor myKey myPassword
myKey” in the command can be any random key that you would like to use to encrypt the password.
myPassword” is going to be your actual password that you would use to log in to your product so as to get access. This is going to be that password that you are trying to encrypt.
Save the values for your “
encryptionKey” and "
encryptedPassword" in a text editor so that you don’t lose them. The “
Encrypted String” value will be your encrypted password.
Add the values for "
encryptedPassword" in the
config.yml. The value for "
encryptionKey" is the value substituted for "
myKey" in the above command. The value for "
encryptedPassword" is the result of the above command.
Once you complete all the steps listed above, your extension will be ready to use the newly generated encrypted password.