OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Tattoofreak on October 07, 2021, 01:00:43 PM

Title: Remote command after certificate renewal process possible?
Post by: Tattoofreak on October 07, 2021, 01:00:43 PM
Hey folks!

As I am serring up automated certificate renewal with the acme plugin I am wondering if it is possible to execute an automated remote command after certificates have been transferred over the plugin's sftp client to the remote machine. Just like it is possible with pfSense's acme plugin integration.

It would be very helpful if I could restart the remote server's services after certificates have successfully been transferred over.

Thank you in advance for any hints!
Title: Re: Remote command after certificate renewal process possible?
Post by: pavelik on October 07, 2021, 04:54:10 PM
I am using what you need. In "Automation" I have action which transfer issued certicate by sftp to linux machine. And in linux machine I am using inotify which help me to restart nginx daemon...
https://www.linuxjournal.com/content/linux-filesystem-events-inotify