Fly.io Certificate Not Issuing or Custom Domain Not Working
Quick answer
Check DNS with fly certs check. Use A/AAAA or a single CNAME (not both), and add a _fly-ownership TXT record if you are behind Cloudflare proxy.
Most likely fix: Check and fix DNS
How to fix it
Try these in order — the most common fix is first.
1. Check and fix DNS
- Run fly certs add example.com, then fly certs setup example.com
- Run fly certs check example.com
- Use either A and AAAA, or one CNAME for subdomains
Did this fix it?2. Behind Cloudflare
- Add a _fly-ownership TXT record
- Set SSL mode to Full or Full (strict); Flexible causes redirect loops
- If HTTP-01 stays blocked, use fly certs import with a Cloudflare Origin Certificate
Did this fix it?3. If you hit rate limits
- Wait for the Let's Encrypt window to pass; Fly cannot reset it
Did this fix it?
Symptoms
fly certs show reports pending, the cert never issues, or the domain loops with redirects behind Cloudflare.
Why it happens
- Mixed CNAME and A/AAAA records
- Missing AAAA, _acme-challenge CNAME or _fly-ownership TXT record
- Let's Encrypt rate limits (50 certs per domain per week, 5 failed validations per hostname per hour)
- Cloudflare orange cloud with Flexible SSL
This guide also covers
- fly.io certificate pending
- fly certs check
- fly.io custom domain not working
- fly.io cloudflare 520
Still not working?
If Fly.io keeps failing, you're not alone. See every Fly.io problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Fly.io errors
- Fly.io: The app is not listening on the expected address and will not be reachable by fly-proxy
- Fly.io 502 Bad Gateway
- Fly.io 503 Service Unavailable
- Fly.io Health Checks Failing
- Fly.io Machines Stopping or Not Starting (Auto-Stop)
- Fly.io Out of Memory (OOM Killed)
- Fly.io Deploy Failed: Waiting for Depot Builder, Registry 401, Too Many Requests
- How to Cancel Fly.io: Delete an App, Stop Billing and Delete Your Account