SSL_ERROR_BAD_CERT_DOMAIN error when using custom domain

Hello, I am having trouble with an error occurring when I visit my website, which is built on netlify, but uses a DNS to a custom domain. When I enter the website I get prompted with a security warning, which says “SSL_ERROR_BAD_CERT_DOMAIN” in the advanced section.

I have to mention that I have created an A record that points to netlify and a CNAME record which points www to the netlify subdomain on which my app resides. However, when I try to ping myDomain, the netlify IP shows up, but when I ping www.myDomain, there’s another IP showing up. I also tried to add another A record, so that I also have one for www.myDomain, but that seems to break it.

Given this information, what should I do?

Hi @aaa2002,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Could you share the site name (such as where you have assigned the custom domain? That’ll help us look into this issue. Thanks!

Sure, it’s [].

I’m not seeing a CNAME record for You’ll want to create a CNAME that points to

and it should be just www that points there, right?

Correct, you can find more detailed instructions here: