User Tools

Site Tools


If you ever need to get back your CloudStack database password, you can easily do so as below:

Grab the encrypted password from /etc/cloudstack/management/

[root@csman2-1 ~]# grep ^ /etc/cloudstack/management/

Retrieve the management key from the file /etc/cloudstack/management/key

[root@csman2-1 ~]# cat /etc/cloudstack/management/key
Finally, decrypt the database password
[root@csman2-1 ~]# java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input=tFogV+Zf2JGHSquhVOumuA== password=password verbose=true
Runtime: Sun Microsystems Inc. OpenJDK 64-Bit Server VM 20.0-b12 
verbose: true
input: tFogV+Zf2JGHSquhVOumuA==
password: password
cloudstack/decrypt_db_password.txt · Last modified: 2014/06/10 09:33 by slayer