OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: DonSYS on May 13, 2018, 01:17:31 am

Title: [SOLVED] Custom commands for LetsEncrypt
Post by: DonSYS on May 13, 2018, 01:17:31 am
Hello all,

First thanks for this amazing firewall, I'm coming from pfSense and noticed a great network performance boost especially with the bandwidth speed.

Now I have a small question with acme.sh on pfsense, we used to write custom commands, but here the acme.sh client is much changed and that's still fine as long as it's more obviously more secure.

I read already that in order to get my restart action I need to create a configd action.

So i done this already by creating actions_acmescripts.conf under
Code: [Select]
/usr/local/opnsense/service/conf/actions.d.

then restarted configd service and tested my command like the following:
Code: [Select]
configctl acmescripts send_pve_cert
It runs properly and all fine, now the simple question, how do I get this to appear in the LetsEncrypt-Restart Actions on GUI side because after adding nothing is added at the frontend.


Any tip is highly appreciated, thanks for your time and for reading my issue.
Title: Re: Custom commands for LetsEncrypt
Post by: DonSYS on May 15, 2018, 10:22:43 pm
Guys, no one has any idea, can't believe that no one uses this feature.
Title: Re: Custom commands for LetsEncrypt
Post by: franco on May 17, 2018, 08:19:53 am
I'm guessing you need to set a description for your action in order to show up in the GUI, see:

https://docs.opnsense.org/development/backend/configd.html#action-properties


Cheers,
Franco
Title: Re: Custom commands for LetsEncrypt
Post by: DonSYS on May 19, 2018, 02:01:55 pm
Exactly Franco, that was what I missed, thanks a lot
Title: Re: Custom commands for LetsEncrypt
Post by: franco on May 19, 2018, 08:24:07 pm
Hi Omar,

Ok, great. I've submitted a change to the docs to make this more clear:

https://github.com/opnsense/docs/commit/7b0c44c6acda


Cheers,
Franco