weizhouapache commented on issue #7626: URL: https://github.com/apache/cloudstack/issues/7626#issuecomment-1590582869
> @Hossein4185 for MGMTSECRETKEY : /etc/cloudstack/management/key for DBSECRETKEY : grep secret /etc/cloudstack/management/db.properties yes @rajujith the database key (db.cloud.encrypt.secret) is encrypted by the management key. You can decrypt by ``` msKey=$(cat /etc/cloudstack/management/key) encDbKey=$(sed '/^\#/d' /etc/cloudstack/management/db.properties | grep 'db.cloud.encrypt.secret' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'i | sed 's/^ENC(\(.*\))/\1/') jasypt=$(ls /usr/share/cloudstack-common/lib/jasypt-*.jar |head -n1) java -classpath $jasypt org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh input=$encDbKey password=$msKey ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
