

You can set the required options as environment variables. Save the cert or the ca as ~/.opn-cli/ca.pem.

Press the "export CA cert" button to download the ca. If you use a ca signed certificate, go to System->Trust->Authorities and

Search for the Name: "Web GUI SSL certificate" and To download the default self-signed cert, open the OPNsense Web Gui and go to If you use ssl verification (-ssl-verify), make sure to specify a valid Open yourīrowser and go to System->Access->Users and generate or use an existing You need a valid API key and secret to interact with the API. OPNsense CLI - interact with OPNsense via the CLI Install required opnsense plugins opn-cli plugin install os-firewallĮach command and subcommand support the -h or `-help option to show help for the current command. Ĭreate the default config file ~/.opn-cli/conf.yaml. Opn-cli - the OPNsense CLI written in python.
