Menu

#5378 WEBMIN does not update SSL certificates automatically while run

1.940
open
nobody
5
2020-07-04
2020-06-05
dredkin
No

As we know every third SSL certificate is issued by Letsencrypt, and they last only 3 month maximum.
BUT wedmin only reads SSL certificate once upon start, so webmin to work I MUST restart it after every certificate update.
That is very inconvenient.
Webmin itself CAN see the date of current certificate, and it CAN reload a certificate when it's running (just press the button 'SAVE' in current certificate tab). Why cannot it AUTOMATICALLY try to re-read it when it's expired? That should be so easy to implement...

Related

Bugs: #5378

Discussion

  • Jamie Cameron

    Jamie Cameron - 2020-06-06

    This is expected - however, if you use Webmin or Virtualmin to renew the cert, it will be automatically applied to Webmin.

     
    • dredkin

      dredkin - 2020-06-06

      It is not expected by an average user, it is inconvenient and easy to fix.
      Also I'm not sure webmin can handle my letsencrypt case (several *.
      Domains in one certificate).

      сб, 6 июн. 2020 г., 6:49 Jamie Cameron jcameron@users.sourceforge.net:

      This is expected - however, if you use Webmin or Virtualmin to renew the
      cert, it will be automatically applied to Webmin.


      Status: open
      Group: 1.940
      Labels: SSL LETSENCRYPT
      Created: Fri Jun 05, 2020 12:21 PM UTC by dredkin
      Last Updated: Fri Jun 05, 2020 12:21 PM UTC
      Owner: nobody

      As we know every third SSL certificate is issued by Letsencrypt, and they
      last only 3 month maximum.
      BUT wedmin only reads SSL certificate once upon start, so webmin to work I
      MUST restart it after every certificate update.
      That is very inconvenient.
      Webmin itself CAN see the date of current certificate, and it CAN reload a
      certificate when it's running (just press the button 'SAVE' in current
      certificate tab). Why cannot it AUTOMATICALLY try to re-read it when it's
      expired? That should be so easy to implement...


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/webadmin/bugs/5378/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #5378

  • Jamie Cameron

    Jamie Cameron - 2020-06-06

    While technically it would be possible to have webmin automatically re-read the SSL cert, that would go against the way other servers like Apache work - they all only load updated certs when restarted.

     
    • dredkin

      dredkin - 2020-06-06

      Hmm.... Loks like you're right, but somehow (I don't know why) I never had to reload apache after renewing certificate, but have to restart webmin...

       
      • Jamie Cameron

        Jamie Cameron - 2020-06-07

        In my experience, Apache has always needed a restart to pick up new certs ... unless that has changed in recent releases?

         
        • dredkin

          dredkin - 2020-06-07

          I've googled a bit and it looks like some letsencrypt apache plugin can request to reload apache configuration (apache rereads certificates not only on restart, but also on reload). Looks like that's why I never experianced this. But I'm not sure...

           
  • Ian

    Ian - 2020-07-04

    If you let letsencrypt set up a cron job to renew the certificates (the default) then just have a shell script in

    /etc/letsencrypt/renewal-hooks/deploy/

    to restart what ever needs restarting. Using webroot authentication doesn't do that for Apache, so I reload that and restart ssh, webmin and the mail server every time the certificate is successfully renewed.

     
  • Ilia

    Ilia - 2020-07-04

    Also I'm not sure webmin can handle my letsencrypt case (several *. Domains in one certificate).

    Yes, it can. You need to use DNS validation and have certbot package installed.

     

Log in to post a comment.

Auth0 Logo