OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: 3x3cut0r on September 07, 2023, 08:18:45 AM

Title: [solved] possibility to decrypt a config file without restoring it?
Post by: 3x3cut0r on September 07, 2023, 08:18:45 AM
is it possible to decrypt an encrypted config file without using opnsense, i.e. recovery?
i ask because i want to look up something in an old config i created.
(and yes i still have the corresponding password)

thank you so much
Title: Re: possibility to decrypt a config file without restoring it?
Post by: franco on September 07, 2023, 11:23:38 AM
The new opnsense-crypt tool can do this on the command line, but it still needs an OPNsense due to requiring the backup class. Doesn't make sense to publish a standalone tool.


Cheers,
Franco
Title: Re: possibility to decrypt a config file without restoring it?
Post by: 3x3cut0r on September 07, 2023, 01:59:04 PM
ok that is fine. i have one ... i just do not want to recover the config. so how can i do it on my opnsense on the command line?
Title: Re: possibility to decrypt a config file without restoring it?
Post by: franco on September 07, 2023, 02:13:09 PM
Sure, check the following

# man opnsense-crypt


Cheers,
Franco
Title: Re: possibility to decrypt a config file without restoring it?
Post by: 3x3cut0r on September 09, 2023, 12:37:15 PM
Thank you,
solved