OPNsense Forum

English Forums => General Discussion => Topic started by: aab on June 05, 2024, 03:54:29 PM

Title: Decrypting the backup from Google-Drive
Post by: aab on June 05, 2024, 03:54:29 PM
Hi,
I want to decrypt the backup file which I got from the google-drive, I want to make changes to it before I restore it (e.g. changing the name of the network interface), does anyone know the command I can use to decrypt the backup of the configuration.xml ?
The following doesn't work for me.  :-[

openssl  enc -d -AES-256-CBC -md SHA512 -pbkdf2 -iter=100000 -in config-encrypted -pass pass:XXXXXXX

Thanks in advance

Regards
Title: Re: Decrypting the backup from Google-Drive
Post by: Monviech (Cedrik) on June 05, 2024, 04:06:41 PM
I think you can do it with

opnsense-crypt

So look at it the available commands with

man opnsense-crypt

The tool exists per default on an OPNsense firewall.