HTTPS certificate issue with two domain names for one site

Hi,

I would like to have two different domain names for my website, let’s called them A and B.
Here is how I’ve configured my domain settings:
www(dot)A(dot)com as primary domain
A(dot)com as “Redirects automatically to primary domain”
www(dot)B(dot)com as Domain Alias
B(dot)com as Domain Alias

A, www(dot)A and B are working fine but not www(dot)B.
When I go on https://www(dot)B(dot)com, I get an error NET::ERR_CERT_COMMON_NAME_INVALID. I’ve renewed the HTTPS certificate on Netlify but it doesn’t seem to take into account www(dot)B(dot)com. I only see www(dot)A(dot)com, A(dot)com and B(dot)com in the domains of the certificate.
Do you know why? How can I fix this issue?

Thank you,

@amsdamsgram Welcome to the Netlify community. You could do a search for ERR_CERT_COMMON_NAME_INVALID in this forum, and/or you could provide the actual custom domain names so others can help troubleshoot this issue.

Hi @gregraven , thank you for your answer.
I’ve renewed the HTTPS certificate again today and it finally added the missing domain name.
Maybe it needed some time to update.

It’s all good now!

1 Like