Executing GUI functions using command line
-
PFSense community,
I am building a script that automates a cloud install and have a need to execute PFSense functions normally done through the GUI using the command line. Specifically, I need to execute 2 functions for the ACME package, the "Register Account Key" function, and the "Reissue/Renew" function. Both key and certs are already populated and when the buttons are pressed in the GUI everything functions as expected. All configuration needed is populated, the only thing needed is commands to execute "Register Account Key" first and then "Reissue/Renew" second.
-
Update:
I think I figured out how to execute the AMCE scripts... If anyone knows how to do it I would still appreciate their approach so I could validate mine but I also need to perform this task for generating the iOS OpenVPN client package. If anyone knows how to execute those commands via command line please let me know. I would greatly appreciate it. If anyone is interested I can share my ACME script process.
-
I would look in here: /usr/local/pkg/acme
You may be able to call those functions directly. Or even just use the ACME script directly.
Not something I've seen done before though.
Steve
-
@stephenw10 I got the ACME script calls working, that was reasonably straight forward. Having a bit more difficulty with the openvpn call. Any ideas on that?
-
Ah, sorry I missed your update.
So you need to automatically generate a fetch the IOS config file?
Mmm, not really sure how you'd do that. The export client package was never expected to be used that way.
Steve
-
@stephenw10 Yeah, thats what I would like to do... I imagine I could do something like screen-scrape if needed...was hoping there would be something...