Hi,

I have setup a turnkey wordpress site with external nginx server. Nginx are using SSL via certbot & Let`s encrypt. The browser tells me that the site is not secure. When I check the domain am getting an error saying "The domain name does not match the certificate common name or SAN.". 

Does anyone know what I can do to solve this?

Replies (3)

The certificate domain must match the domain in the URL

Reply 1

It sounds like the certificate you have does not match the domain you are serving. You need to get a new cert that is valid for the domain that you are using - i.e. the one that is displayed in the address bar. When you check the cert, it should show the domain that it is valid for.

That's a wildcard cert. Are you using a subdomin?

Reply 2

It looks like the certificate you have is a wildcard cert (i.e. starts with a asterisk). That will only match a subdomain. Because you've obscured the domain in your browser, I can't tell for sure that's the case, but my guess is that you are trying to use the naked domain (and that won't work with a wildcard cert).

Also, I suggest checking what the browser itself is reporting, rather than some other tool (looks like Windows built-in cert viewer?).

The sertificate name and

Reply 3

The sertificate name and domain name are the same.