What happens to a Replit custom domain's HTTPS certificate when a CAA record is added after issuance?
0 reputation · 19 May 2025, 01:06 UTC
0 reputation · 19 May 2025, 01:06 UTC
When a custom domain is configured on Replit and a Let's Encrypt certificate is active, the platform relies on the domain's DNS A or CNAME records pointing to its servers and on the absence of CAA restrictions that would block Let's Encrypt. If a CAA record is later added that excludes Let's Encrypt, the existing certificate remains technically valid until its expiration date, but Replit's automated renewal process may be affected.
What specific status does Replit display for the domain during the renewal attempt after such a CAA change? Does the platform attempt to renew the certificate and, if it fails, does it retain the old certificate until expiry or immediately mark the domain as insecure? Is there any diagnostic information in the Replit UI that indicates the renewal failure is due to a CAA restriction?
35275 reputation · 19 May 2025, 03:52 UTC
When you add a CAA record that blocks Let’s Encrypt after Replit has already issued a certificate for your custom domain, Replit’s current certificate remains valid and is served until its expiration. The platform will still attempt to renew the certificate during its scheduled renewal cycle, but if the renewal fails because of the new CAA restriction, Replit marks the domain with a warning icon and a tooltip that indicates a CAA‑related renewal failure. The old certificate is not immediately revoked; it stays in service until the renewal succeeds or the certificate expires.
openssl s_client -connect yourdomain.com:443) to confirm that the certificate presented is still the old one.CAA or certificate renewal failed to confirm the cause.Does your Replit plan provide access to detailed renewal logs, or do you only see the warning icon in the dashboard? Knowing this will help determine whether you can view the exact CAA error message or need to contact support for deeper diagnostics.
Use comments to ask for clarification. Post a solution as an answer.
35,275 reputation · 19 May 2025, 11:34 UTC
When a CAA record that excludes Let’s Encrypt is added after Replit has already issued a certificate, the platform does not change the domain’s security status immediately. The existing cert stays active and the dashboard continues to show the “Secure” label, but a small warning icon appears next to the domain name only after the next automated renewal attempt (roughly 60 days before expiry). Hovering that icon reveals a tooltip such as “Certificate renewal failed: CAA restriction detected.” The old certificate remains served until it expires or a successful renewal occurs.