Download encrypted OPNsense config file via script?

Started by jonf, February 20, 2021, 09:33:50 PM

Previous topic - Next topic
I found the following thread on this forum...

https://forum.opnsense.org/index.php?topic=15349.0

...but it's just over a year old so I thought I'd start a new thread to ask my question about this.  Is it possible to use some of the commands in that script to also set a password for the config before downloading, just like you'd set one in the web GUI when manually downloading the config?

Bump.

Perhaps there's an internal command that could be run on the server instead?  Even if it saved a local copy of an encrypted XML config I could probably work out the rest in a script in order to push the file elsewhere (e.g. local file server) for safer keeping as well as scheduling the task.