$ base64 -d encrypted-config.xml | openssl enc -d -aes-256-cbc -md md5 > decrypted-config.xml
first delete first and last line from config.encrypted---- BEGIN config.xml -------- END config.xml ----Thank you!
Version: OPNsense 19.7.7Cipher: AES-256-CBCHash: MD5
openssl enc -aes-256-cbc -base64 -d -p -in encrypted_config.xml -out decrypted_config.xml
---- BEGIN config.xml ----Version: OPNsense 22.1.9Cipher: AES-256-CBCPBKDF2: 100000Hash: SHA512
grep -v "config.xml" encrypted_config.xml | tail -n +6 | openssl enc -base64 -d -aes-256-cbc-md sha-512 -iter 100000 -out decrypted_config.xml
Based upon that block, I changed to the cli arguments accordingly and it then worked:Code: [Select]redacted
redacted
grep -v "config.xml" encrypted_config.xml | tail -n +6 | openssl enc -base64 -d -aes-256-cbc -md sha-512 -iter 100000 -out decrypted_config.xml