SSL Certificate Error on www subdomain - NET::ERR_CERT_COMMON_NAME_INVALID

  • Domain: urhb.in and www.urhb.in

  • Error: NET::ERR_CERT_COMMON_NAME_INVALID

  • Issue: SSL certificate being served only covers urhb.in, missing www.urhb.in as a SAN — despite Vercel dashboard showing valid SSL for both

  • Debug output: Attach your Gist link

  • DNS: Cloudflare (DNS-only mode, no proxy)

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

Profile - rohitnirban - Vercel Community Looks like the www subdomain is still serving an old SSL certificate.

Try:

Usually this regenerates the certificate with both:

included :+1:

Tried this multiple times but it still gives the same error.

Also, Its not regenerating the certificate beacuse as i removed them and added them again they simple says valid configuration no Generating SSL certificate

yes honestly if the main domain works fine and only the www subdomain has the SSL error, then it’s usually NOT coming from your app code/VS Code source itself :+1:

NET::ERR_CERT_COMMON_NAME_INVALID is more about:

  • SSL certificates
  • DNS
  • domain configuration
  • proxy/CDN cache
  • certificate sync/propagation

Your app code normally wouldn’t cause a browser certificate mismatch error like that.

Especially since Vercel already shows the deployment working and SSL valid in dashboard, it sounds more infrastructure/domain-side than application-side :sweat_smile: