Problem with domains and certs

For the purposes of this post, let’s say I have my system as server.mailinabox.email (my real domain is something different)

In the admin I have two separate entries as server.mailinabox.email and mailinabox.email.

I installed a cert into mailinabox.email that is valid for both mailinabox.email and www.mailinabox.email.

The server.mailinabox.email is still the self signed cert

Now when I go to www.mailinabox.email in a browser, it actually serves out the cert for server.mailinabox.email. And if I go to mailinabox.email, it redirects me to www.mailinabox.email.

If I try to install example.com’s cert into server.example.com, it just tells me the name doesn’t match (and i never purchased it for server.example.com anyway)

How do I sort out this mess?

Could you post a screengrab of the SSL certs page of the control panel? (Feel free to scrub domain names as long as I can tell which is which.)

You probably set a custom DNS record for the www domain? Remove that and you’ll be good.

I removed it and that took out the www entry in the certs section, but it still serving the self-signed server.longmail.xyz instead of the purchased www.longmail.xyz when i go to www.longmail.xyz in my browser. I restarted the server and it didn’t change anything

Can you post a new screengrab of the SSL certs page?

www.longname.xyz wasn’t in the list before. It should be now (now that the custom DNS record is removed). What does it say now for that domain?

It says “Signed & valid. Using multi/wildcard certificate of longmail.xyz.”. But when I go to the website itself (outside of admin) and view cert, it is the self-signed for server.longmail.xyz

I ended up copying /home/user-data/ssl/longmail.xyz/ssl_certificate.pem on top of /home/user-data/ssl/ssl_certificate.pem

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.