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

    Captive Portal HTTPS Login Page and Letsencrypt Cert update

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 2.0k Views
    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
      matthewdeets
      last edited by

      Hello!

      Thought that I might be missing something here or perhaps overthinking things.

      I was able to successfully set up an automated renew and issue for our webconfigurator site cert and captive portal login page.  The webconfigurator cert is updated with no issues as I'm able to run a single shell command requesting a restart of the webconfigurator.

      My question is, can I do something similar with the captive portal system to use the newly issued cert from letsencrypt?  After the certificate for my captive portal successfully updates from letscrypt,  the only way I have found to be able to update it is to either go into the captive portal configuration page and actually click on "save" or to add a shell command to restart the entire system - this seems to be a bit of overkill to me.

      Any suggestions on how to automate the reloading of the captive portal new certificate would be most greatly appreciated.

      Thanks,
      -Matt  :)

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Same question here pfSense Forum » pfSense English Support » Packages » Let´s Encrypt Error with nsupdate.
        Once the cert of the captive portal is updated, the web server  that runs the SSL part (a copy of nginx) has to be restarted or at least reloaded if that's possible.
        As far as I known, a script that only restarts the captive portal doesn't exist.

        But …. inspected this script : /etc/rc.restart_webgui - the one that is proposed to restart the web server that runs the GUI : it also restarts the web server that runs captive portal ;)

        Btw : This means that a script that ONLY restarts the captive portal can be made easily, if needed  ;)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Use /etc/rc.restart_webgui like the example shows, that will restart nginx instances for the GUI and Captive Portal. It happens quickly, there isn't really any incentive to restart only one or the other for something as infrequent as a certificate update (once per month at most, could be as rare as once every 90 days)

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

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