LE SSL did not auto renewe

Discussion in 'Installation/Configuration' started by skysky, Mar 15, 2019.

  1. skysky

    skysky Member

    Hi

    My site installed LE SSL, but when it expired ISPconfig did not auto renew it causing my site down. I have to manually uncheck and check the LE SSL again.

    How to enable LE SSL auto renewal?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ahrasis likes this.
  3. skysky

    skysky Member

    I checked the log /var/log/letsencrypt, and see this. I am not sure if this is the cause.
    :certbot.cli:You are running with an old copy of letsencrypt-auto that does not receive updates, and is less reliable than more recent versions. We recommend upgrading to the latest certbot-auto script, or using native OS packages.

    Do I need to setup any cron job for LE SSL auto renew? or ISPconfig will handle it?

    I tried to update the certbot, but seem no need to update.

    yum update certbot
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * elrepo: mirror-hk.koddos.net
    * elrepo-kernel: mirror-hk.koddos.net
    * nux-dextop: mirror.li.nux.ro
    base | 3.6 kB 00:00:00
    elrepo | 2.9 kB 00:00:00
    elrepo-kernel | 2.9 kB 00:00:00
    epel | 4.7 kB 00:00:00
    extras | 2.9 kB 00:00:00
    nux-dextop | 2.9 kB 00:00:00
    updates | 2.9 kB 00:00:00
    (1/7): epel/x86_64/group_gz | 95 kB 00:00:00
    (2/7): elrepo/primary_db | 374 kB 00:00:00
    (3/7): epel/x86_64/updateinfo | 1.0 MB 00:00:00
    (4/7): extras/7/x86_64/primary_db | 206 kB 00:00:00
    (5/7): epel/x86_64/primary_db | 6.9 MB 00:00:00
    (6/7): updates/7/x86_64/primary_db | 3.8 MB 00:00:00
    (7/7): elrepo-kernel/primary_db | 1.9 MB 00:00:00
    Package(s) certbot available, but not installed.
    No packages marked for update
     
    Last edited: Aug 9, 2020
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ahrasis likes this.
  5. skysky

    skysky Member

    thank you. I reinstalled, and now will need to wait to see auto renewal working or not. there is no way to test this except waiting for next expired date I think.
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Read letsencrypt log to see if it checks the renewals. It should say not yet due for renewal or similar.
     
  7. skysky

    skysky Member

    In Aug I reinstalled, and now about 3 months, I received email from letsencrypt that my SSL expiring in 10 days. which means auto renewal is still not working.

    I run commend "less letsencrypt.log" to see the latest log, and the last log date is 16 Aug 2020.
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  9. till

    till Super Moderator Staff Member ISPConfig Developer

    And have a look into the ispconfig database, table sys_cron, any cronjobs marked as running with an old last run date?
     
  10. skysky

    skysky Member

    I forgot adding the cron job. I added below.
    * 3 * * 6 certbot-auto renew && systemctl restart httpd.service >> /var/log/ispconfig/cron.log; done
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig renews certs on its own, do not add a separate cronjob for it as renewals might fail then.
     

Share This Page