ACMEv1 is deprecated and you can no longer get certificates from this endpoint

Discussion in 'ISPConfig 3 Priority Support' started by JOP, Jul 6, 2021.

  1. JOP

    JOP Member HowtoForge Supporter

    can't renew Let' Encrypt Cert today. Thought ACM2 is implemented in ispconfig?
    What to do, use ispconfig with centos:

    ERROR MESSAGE:
    ###
    Your system is not supported by certbot-auto anymore.
    certbot-auto and its Certbot installation will no longer receive updates.
    You will not receive any bug fixes including those fixing server compatibility
    or security problems.
    Please visit https://certbot.eff.org/ to check for other alternatives.
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    -------------------------------------------------------------------------------
    Processing /etc/letsencrypt/renewal/mailserver.conf
    -------------------------------------------------------------------------------
    Plugins selected: Authenticator webroot, Installer None
    Attempting to renew cert () from /etc/letsencrypt/renewal/mailserver.conf produced an unexpected error: urn:acme:error:serverInternal :: The server experienced an internal error :: ACMEv1 is deprecated and you can no longer get certificates from this endpoint. Please use the ACMEv2 endpoint, you may need to update your ACME client software to do so. Visit https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27 for more information.. Skipping.
    All renewal attempts failed. The following certs could not be renewed:
    /etc/letsencrypt/live/mailserver/fullchain.pem (failure)
    -------------------------------------------------------------------------------
    All renewal attempts failed. The following certs could not be renewed:
    /etc/letsencrypt/live/mailserver/fullchain.pem (failure)
    -------------------------------------------------------------------------------
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Which version of CentOS?
     
  3. JOP

    JOP Member HowtoForge Supporter

    CentOS 7.9
    yes, but realized only have /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org
    other (working) server v02 is present.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Only if you use old ISPConfig before v2 is fixed and/or unsupported certbot as mentioned in the error log. Update both.
     
  5. JOP

    JOP Member HowtoForge Supporter

    ISPConfig 3.2.5 installed on this server, and CentOS 7.9 wiht all updates.
    How to uprade certbot on CentOS 7.9 manually?
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Follow the advise in the error log.
     
  7. JOP

    JOP Member HowtoForge Supporter

    would this work with ISPConfig, also after updates?
    I have another server with CentOS 7.9 and ISPConfig same setup that works. This server has
    "acme-v01.api.letsencrypt.org" and "acme-v02.api.letsencrypt.org" in "/etc/letsencrypt/accounts"
    None of my servers has packages certbot or snapd installed with df installed. All servers build with HoToForge "Perfect Server" manual.
     
    Last edited: Jul 7, 2021
  8. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    If you think that maintaining the current certbot is best for you, try deleting that website LE certs and folders via cli command "rm -rf /etc/letsencrypt/*/domain.tld*" and request a new certs via ISPConfig panel. I won't promise it will work, though, it usually would.
     
  9. JOP

    JOP Member HowtoForge Supporter

    seems me to be a little bit risky to me deleting all that folders on a production machine?
    Whats the way back if it fails?
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Nope it is not. But of course as a failsafe, you should backup.

    Either or, it is up to you.
     
  11. JOP

    JOP Member HowtoForge Supporter

    doesn't work for me, any other suggestions or sulution?
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to install an up to date certbot version, the certbot auto command is not supported by the creators of certbot anymore, you have to use the snap packages now. The procedure to install certbot by using snap is described here:

    https://certbot.eff.org/

    There is no need to delete any folders in /etc to upgrade certbot. Just remove certbot-auto, it's probably in the folder /usr/local/bin/ and then rename the folder /opt/eff.org to remove the actual certbot. Rename it e.g. like this:

    mv /opt/eff.org /opt/eff.org_bak
     
    JOP likes this.
  13. JOP

    JOP Member HowtoForge Supporter

    thank you Till, but now I'm totally confused.
    I have four CentOS with IPSConfig, three are running without any changes. Only this one has problems and doesn't switch/upgrade toacme-v02.
    Can you give me an howto, because I'm noit common with this at the moment?
     
  14. JOP

    JOP Member HowtoForge Supporter

  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's what I suggested you to do after you removed the old certbot as I described in my post. Follow that guide but leave out step 7 as you don't want to issue certs on the command line, you just need a up to date certbot.
     
    JOP likes this.
  16. JOP

    JOP Member HowtoForge Supporter

    thank you Till, seems to solve my problem, new Let's Encrypt cert installed. Hope that will work without further interaction?
    What I didi in short:

    ###

    # mv /opt/certbot/certbot-auto /backup/
    # mv /opt/eff.org /opt/eff.org_bak

    # sudo yum install snapd
    # sudo systemctl enable --now snapd.socket
    # sudo ln -s /var/lib/snapd/snap /snap
    # sudo snap install core; sudo snap refresh core
    # sudo snap install --classic certbot
    # sudo certbot renew --dry-run

    Go to ISPConfig - Sites and selected the site, disabled checkbox "Let's Encrypt SSL", wait and enabled it.
    ##

    https://certbot.eff.org/lets-encrypt/centosrhel7-apache
    https://snapcraft.io/docs/installing-snap-on-centos
     
    Last edited: Jul 7, 2021
  17. JOP

    JOP Member HowtoForge Supporter

    one closing question:
    Is the manual upgrade also mandatory for those servers that have the "acme-v02.api.letsencrypt.org" in the "/etc/letsencrypt/accounts" folder?
    How can I test the acme-02 config is working correct on the other servers?
     
  18. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Test with
    Code:
    certbot renew --dry-run
    From man certbot:
    Do not run the certbot command without the --dry-run. If it writes certificates to disk it breaks the certificates ISPConfig makes.
    See man for further info on -d and --force-renewal to help in testing.
     
    JOP likes this.
  19. JOP

    JOP Member HowtoForge Supporter

    Thank you Taleman, valuable tip!
    Is it possible to force cert renewing on CLI as with legacy "certbot-auto", without breaking ISPConfig?
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, ISPConfig itself just calls certbot renew as well.
     
    JOP likes this.

Share This Page