Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Executing GUI functions using command line

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 691 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mephmanx
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mephmanx
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • stephenw10S Online
          stephenw10 Netgate Administrator
          last edited by

          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

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mephmanx @stephenw10
            last edited by

            @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?

            1 Reply Last reply Reply Quote 0
            • stephenw10S Online
              stephenw10 Netgate Administrator
              last edited by

              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

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mephmanx @stephenw10
                last edited by

                @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...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.