Symptoms
The wrong certificate is displayed when I open any domain via HTTPS. I added the correct certificate under server settings, assigned this certificate to an IP, set the default domain for the IP, and restarted Apache. But if I open https://domain.tld, I still get a localhost.localdomain (or another) default certificate.
Resolution
Look in /etc/httpd/conf.d/ssl.conf for this line:
<VirtualHost _default_:443>
If it exists, you have to delete/comment this default SSL virtual host, starting from
"<VirtualHost _default_:443>" line and ending with "</VirtualHost>".
Then stop and start (but do not restart!) the Apache server.