Why do I get an ERR_SSL_UNRECOGNIZED_NAME_ALERT error?

What Is This Error?

The ERR_SSL_UNRECOGNIZED_NAME_ALERT error occurs when the browser tries to make an HTTPS (SSL-secured) connection, but the server doesn’t have a valid SSL configuration for that particular domain or temporary URL.

This is often the case when using a staging or temporary domain that is not covered by an SSL certificate.

The Reason Why

This problem usually arises out of:

How to Correct It

To solve this problem, ensure that the temporary URL loads via HTTP, not HTTPS.

Check the WordPress settings and change the site URL and home URL to use:

http://example-co-uk.staging.com

Rather than:

https://example-co-uk.staging.com/

Check Inside WordPress Important

Make sure both of the following are set to update:

Temp or staging domains should use http://


When SSL Will Not Work

SSL will only function when:

Once the domain is set up correctly with SSL, HTTPS will work without any errors.

Conclusion

The ERR_SSL_UNRECOGNIZED_NAME_ALERT error happens because the temporary URL doesn’t support SSL over HTTPS. You can switch the site to HTTP and make sure the WordPress URLs are set correctly and that should fix it until you get a proper domain with SSL configured.