Error: "The certificate uploaded is NOT for the domain name"

When trying to upload an SSL certificate, you may see an error like this:

The certificate uploaded is NOT for the domain name example.com

This article describes some common, but sometimes unexpected, causes for this issue.

The SSL certificate is for a different domain

If you are trying to upload an SSL certificate for a particular domain name, say “example.com”, the SSL upload tool checks whether the SSL certificate is valid for “example.com”. If the SSL certificate is not valid for the given domain, the certificate is rejected.

So, if you have a certificate which is for another domain name (like “example.net”) or a subdomain (like “blog.example.com”), you cannot upload it to “example.com”.

Some certificates vendors also make it possible to issue certificates for “www.example.com” without including “example.com” as well (and vice versa). Please ensure your SSL certificates includes both the www and non-www versions of your domain name.

The SSL certificate is a Wildcard Certificate

Normally, SSL certificates are only valid for a specific domain or set of domains. However, most SSL vendors also provide the option to purchase wildcard SSL certificates. Wildcard certificates apply to all subdomains of a particular domain.

Unfortunately, it’s not possible to use wildcard certificates on free hosting at the moment. Wildcard certificates are rejected with the error shown above.

Should we either update or archive this?

I updated the article. Despite many things changing regarding SSL certificates, the information here is still mostly correct. But I must admit I incorrectly attributed the problem with Cloudflare Origin Certificates, and have updated the article with the revised information.

3 Likes