OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: kimnz on February 24, 2019, 12:24:00 am

Title: Let's Encrypt Automation: Run shell scripts
Post by: kimnz on February 24, 2019, 12:24:00 am
I have been looking in Let's Encrypt: Automation for the ability to run a script - one that updates certs on other systems.
Is this currently possible?

If not should it be under Run Command or Run Command: System or Plugin Command?

Thanks,
Kim
Title: Re: Let's Encrypt Automation: Run shell scripts
Post by: kimnz on March 01, 2019, 10:25:33 am
I have found the answer to my question:

https://github.com/opnsense/plugins/issues/459#issuecomment-357346601 (https://github.com/opnsense/plugins/issues/459#issuecomment-357346601)

Quote
For security reasons it is not possible to inject arbitrary code through the OPNsense GUI. That being said, it's still possible to create custom actions that can be used as "Restart Actions" for our Let's Encrypt plugin.

You'll have to create a custom action for the configd backend service. Please see the documentation for more information:
https://docs.opnsense.org/development/backend/configd.html (https://docs.opnsense.org/development/backend/configd.html)