SSL certificate not valid for domain.com but is for www.domain.com or vice versa
Problem 1:
I have purchased an SSL for domain.com, however, www.domain.com gives an SSL error
Problem 2:
I have purchased an SSL for www.domain.com, however, domain.com gives an SSL error
--------------------------------
Most SSLs will provide a certificate for only domain.com or www.domain.com
-- whichever is given during the signing request generation. As such,
when using SSLs visitors need to go to the one that matches the SSL's
"common name" (CN) (an SSL's equal to a domain name). So before
purchasing an SSL, you need to decide which address you want to use.
Having www on an address is technically not needed and some prefer to
not have www at all.
Some SSLs, like those from comodo (or via the buy and install option in hsphere), comes valid with both www.domain.com and domain.com . You can also use a multiple domain SSL, however, this is typically a more expensive option.