Netlify SSL_ERROR_BAD_CERT_DOMAIN and "This site is private"
Netlify SSL_ERROR_BAD_CERT_DOMAIN or "This site is private" on your apex domain? Check DNS, CAA, AAAA and www, then renew the certificate.
The Liite team8 دقيقة قراءة
Short answer
The certificate being served doesn't list your apex hostname, because Netlify couldn't issue one for it. Point the apex at Netlify (an A record to 75.2.60.5, or an ALIAS to apex-loadbalancer.netlify.com), delete stray A, AAAA and blocking CAA records, then select Renew certificate under Domain management > HTTPS.
You open example.com and Firefox stops with this:
SSL_ERROR_BAD_CERT_DOMAIN
Or the browser says the certificate only covers *.netlify.app, or Netlify shows a page reading "This site is private". The www version may load fine while the apex doesn't.
Why it happens
A certificate lists the hostnames it is valid for. If you connect to example.com and the certificate on the other end doesn't list that name, the browser refuses. Netlify serves its own *.netlify.app certificate by default, so a mismatch usually means no certificate was issued for your custom hostname.
The most common causes, roughly in order:
- DNS doesn't point at Netlify yet, or only partly. Netlify can't issue a certificate until the custom domain's DNS records point at its servers, because it has to validate the domain. Netlify's troubleshooting guide says most SSL certificate errors stem from incorrect DNS settings.
- Only one of the two names is set up. When your custom domain is the apex or
www, Netlify serves the site and provisions a certificate for both, so both need records pointing to Netlify. A workingwwwwith a missing apex record is a classic version of this problem. - Leftover records from an old host. Netlify's docs list leftover AAAA (IPv6) records, extra A records on the apex, DNSSEC conflicts with Netlify DNS, and a CAA record that doesn't include Let's Encrypt as things that break provisioning.
- Another service sits in front of Netlify. If traffic goes through something like Cloudflare's "accelerate and protect", you need to disable that routing, because Netlify has to handle TLS termination to provision a certificate.
- The certificate was issued for one name and not another. Netlify says it can get a certificate for one name and not for
wwwor an alias, and that selecting Renew certificate should resolve it.
About "This site is private": I couldn't find this message in Netlify's current troubleshooting pages, so I can't tell you its exact trigger. People on Netlify's community forum and r/Netlify report it alongside a domain that isn't properly attached to a site, which fits the DNS causes above. Treat that as a likely reading, not a confirmed one.
Step-by-step fixes
1. Check the certificate status
- Open your site in the Netlify dashboard.
- Go to Domain management > HTTPS. This is where Netlify shows the certificate status.
- Note any message, such as "Waiting on DNS propagation", "DNS verification failed" or "Missing certificate". You'll want it for support later.
2. Make sure both domains are on the site
- In Domain management, confirm the apex (
example.com) andwww.example.comare both listed. - If the apex is missing, choose Add a domain and then Add a domain you already own, and enter it.
- If the apex is attached to a different Netlify site or team, remove it there first, then add it here.
3. Set the right DNS records
If you use external DNS, go to Domain management > Production domains and select Pending DNS verification next to the domain to see the records for your site. The usual values are:
| Hostname | Record type | Value |
|---|---|---|
example.com (apex) | ALIAS, ANAME or flattened CNAME (preferred) | apex-loadbalancer.netlify.com |
example.com (apex) | A (if your provider has no ALIAS) | 75.2.60.5 |
www.example.com | CNAME | your-site-name.netlify.app |
Apex domains don't support plain CNAME records, so you need ALIAS, ANAME, flattened CNAME or an A record. For the www CNAME, make sure the target is exactly your site name followed by .netlify.app, with no typos and no https://. These values are from Netlify's docs as of November 2026. Your own Pending DNS verification panel is the authority if it differs.
4. Delete records that conflict
- Multiple A records. Keep only the single A record pointing to
75.2.60.5on the apex. - AAAA records. Netlify's load balancer doesn't support IPv6, so remove all AAAA records for the apex.
- CAA records. If a CAA record doesn't include Let's Encrypt, provisioning fails. Update it to allow Let's Encrypt or remove it. If you want to lock issuance to Netlify, Netlify documents a CAA record with its account URI, so copy that from its HTTPS docs rather than writing your own.
- DNSSEC. Netlify DNS doesn't support DNSSEC, so disable it at your registrar or previous DNS host if you use Netlify DNS.
Don't delete Netlify's own records
If you use Netlify DNS, don't delete the NETLIFY or NETLIFYv6 records unless you want to disconnect the site from that domain. Remove only the old-host records you added yourself.
5. Turn off anything that proxies the traffic
If the domain runs through Cloudflare's proxy or a similar service, switch the record to DNS-only (or the equivalent) until the certificate is issued. Per Netlify, Netlify must handle TLS termination to provision a certificate.
6. Confirm the apex really reaches Netlify
Run this in a terminal, replacing the hostname:
curl -s -v http://example.com 2>&1 | grep -i serverYou should see server: Netlify, and you should repeat the check for each domain connected to your site. If you see it but still get the "doesn't appear to be served by Netlify" message, Netlify says incorrect A records may be the cause. The free redirect checker also shows where a URL ends up.
7. Wait for DNS, then renew the certificate
Netlify says all DNS records must be correct and propagated globally before it can provision a certificate, and old records elsewhere have to expire first. Then, in Domain management > HTTPS, select Renew certificate (or Provision certificate).
If the first attempt fails, Netlify retries every 10 minutes for 24 hours, then hourly for the next two days. If there's still no certificate after 24 hours, it likely means a DNS misconfiguration needs your attention.
8. Run Let's Debug if it still fails
When DNS looks right but you still get errors, Netlify suggests the Let's Debug tool to check your domain with Let's Encrypt. It tends to catch the hidden AAAA, duplicate A and CAA problems above.
Quick diagnosis table
| What you see | Likely cause | Fix |
|---|---|---|
Certificate lists only *.netlify.app | No certificate issued for your hostname | Fix DNS, then renew |
www works, apex errors | Apex record missing or wrong | Add the apex A or ALIAS record |
| "Waiting on DNS propagation" | Old records still cached | Wait for TTL, remove stale records |
| "DNS verification failed" | Records don't match Netlify's values | Compare with Pending DNS verification |
| Provisioning keeps failing | CAA, AAAA, DNSSEC or proxy in the way | Remove or adjust, then retry |
Make www the primary domain on external DNS
With external DNS, Netlify strongly recommends setting www (or another subdomain) as your primary domain. If the apex is primary, Netlify redirects www to it, and that redirect needs a working certificate on both names.
What won't help
- Redeploying. The certificate depends on domain and DNS setup, not your build.
- Clicking through the browser warning. It doesn't fix anything for your visitors.
- Uploading your own certificate while DNS is wrong. Netlify checks that the certificate matches the custom domain and that DNS points at Netlify before installing it.
Checklist before you try again
- Apex and
wwware both listed under Domain management. - The apex has one
Arecord to75.2.60.5, or an ALIAS toapex-loadbalancer.netlify.com. wwwhas aCNAMEtoyour-site-name.netlify.app.- No AAAA records, and no CAA record that blocks Let's Encrypt.
- No proxy or CDN in front of the domain.
- DNSSEC is off if you use Netlify DNS.
- You've waited for old DNS caches to expire and tested in a private window.
If nothing works
Contact Netlify Support, or post in Netlify's support forums, and check Netlify's SSL and HTTPS troubleshooting guide first. Include the domain, the exact error text, the status shown in Domain management > HTTPS, your DNS records, and what you've already tried. Netlify's own advice is that if Renew certificate doesn't help, you should contact Netlify Support so engineers can repair the certificate.
Subject: No certificate for apex domain example.com (SSL_ERROR_BAD_CERT_DOMAIN)
Hi, https://example.com shows SSL_ERROR_BAD_CERT_DOMAIN (or "This site is private"), while https://www.example.com works.
Site: your-site-name.netlify.app
DNS: external provider, apex A 75.2.60.5, www CNAME your-site-name.netlify.app
Checked: no AAAA records, no CAA blocking Let's Encrypt, no proxy, DNSSEC off
Status under Domain management > HTTPS: <paste the message>
Tried: Renew certificate at <time and timezone>
Can you check why no certificate is issued for the apex?If the page behind the domain is just static
If what you're serving is a single HTML file, a zip or a PDF, Liite can host it at <slug>.liite.site and, on Pro and up, on one custom domain with HTTPS set up automatically. It doesn't build from source or deploy from Git, so it won't replace a Netlify build pipeline. See custom domains and uploaded sites.
Common questions
How long does Netlify take to issue the certificate?
It tries as soon as you add the domain. Failed attempts are retried every 10 minutes for the first 24 hours, then hourly for two more days. DNS changes themselves can take up to 48 hours to spread.
Why does www work but the apex doesn't?
The two names have separate DNS records, and often one is right while the other has a stale A or AAAA record. Fix the apex record and renew the certificate.
Should I move my DNS to Netlify DNS?
It can simplify apex setups. Netlify recommends Netlify DNS if you want the apex as your primary domain. Copy your existing records first, such as MX records for email, so nothing else breaks.
Can I use my own certificate instead?
Yes, under Domain management > HTTPS with Set Custom Certificate. DNS must still point at Netlify, and Netlify can't renew a custom certificate automatically.