Skip to content

SSL with DNS challenge fails due to propagation but ee thinks it renewed #1736

Description

@GreenLondon

Due to cloudflare we are using the DNS challenge method in order to renew the letsencrypt certificate of the site.

Even though the renewal has failed due to DNS records not being propagated, easyengine thinks that the SSL certificate has been renewed causing issues later on.

Issues such as not renewing the certificate when needed so the certificate expires. Not allowing to force renew so we have to delete the site and re-upload it.

All the issues cost money because of the time spend.

`ee site ssl-renew www.example.com
Starting SSL cert renewal
Loading current certificate for www.example.com
Loading current certificate for www.example.com
Created DNS record: _acme-challenge.example.com. with value 4l5Sq1y5bUzcDcmcIPTOj6aP1zzUOQYoSjR7CT_0pmA.
Created DNS record: _acme-challenge.www.example.com. with value zGav80pE1TgvEKR94QSemDq7wFA2qz1LnutSzdBNDaE.

Waiting for DNS entry propagation.
Starting SSL verification.
Warning: The dns entries have not yet propogated. Manually check:
host -t TXT _acme-challenge.www.example.com
Before retrying ee site ssl www.example.com
Warning: Check logs and retry ee site ssl-verify www.example.com once the issue is resolved.
Starting site's services.
Success: SSL renewal completed.`

Activity

  1. prionkor commented on May 8, 2023

    @prionkor

    A recent incident. Where one of my client changed dns to their sites. As ee renews all sites in a single command this broken ssl for all other sites. here is how:

    1. ee starts renewing one after another.
    2. if dns is changed at any moment. le just times out and thorws error. This exists the renew process. leaving all others sites below un-renewed.
    3. this keeps happening and eventually ssl for all sites below is expired and sites broken.

    This needs to be fixed. Possible solution: Check DNS before renew.

  2. prionkor commented on May 8, 2023

    @prionkor

    A recent incident. Where one of my client changed dns to their sites. As ee renews all sites in a single command this broken ssl for all other sites. here is how:

    1. ee starts renewing one after another.
    2. if dns is changed at any moment. le just times out and thorws error. This exists the renew process. leaving all others sites below un-renewed.
    3. this keeps happening and eventually ssl for all sites below is expired and sites broken.

    This needs to be fixed. Possible solution: Check DNS before renew.

  3. mrrobot47 commented on Sep 30, 2026

    @mrrobot47
    Member

    Thanks for reporting this. It's fixed in EasyEngine v4.13.1 by site-command#505.

    When a renewal doesn't produce a new certificate (for example because the DNS records haven't propagated yet), ee site ssl-renew <site> now fails with an error saying the current certificate is kept, instead of reporting "SSL renewal completed.". The certificate files stay as they were, so the next renewal still sees the certificate as due and tries again.

    @prionkor, on the --all case in your comment: ee site ssl-renew --all now continues past a site whose renewal fails. That site gets a warning and keeps its current certificate, and the remaining sites are still renewed.

    Please update with ee cli update, and reopen this if you still see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions