Article ID: 939, created on Oct 6, 2008, last review on May 11, 2014

  • Applies to:
  • Plesk 11.0 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk 10.3 for Linux/Unix


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.

Cause & Resolution

The problem appears only if the name of the affected domain matches the server hostname. In that case, default SSL virtual host, defined in file '/etc/httpd/conf.d/ssl.conf' sets up SSL certificates for all virtualhosts with the same name and, due to how mod_ssl interprets the configuration, future definitions of virtualhosts with the same name do not override mod_ssl settings, leaving SSL certificate definition unchanged in '/etc/httpd/conf.d/ssl.conf'.


Look in all files matching '/etc/httpd/conf.d/*.conf' (or /etc/apache2/conf.d/*.conf for Debian/Ubuntu systems) for the lines declaring SSL virtual hosts. This command can help you do it (change the path if you are using Debian/Ubuntu):

# grep -iR '^[[:space:]]*<VirtualHost' /etc/httpd/conf.d/* | grep "_default_"


    #  grep -iR '^[[:space:]]*<VirtualHost' /etc/httpd/conf.d/* | grep "_default_"
    /etc/httpd/conf.d/ssl.conf:<VirtualHost _default_:443>

If the above command returns some output, you have to edit the listed files (in our example, it is /etc/httpd/conf.d/ssl.conf) and comment out all the lines starting from:

<VirtualHost _default_:443>

up to this line


Then stop and start (not restart!) the Apache server.

Search Words


wrong ssl

ssl warning

wrong certificate

new SSL certificate cannot be selected / used by panel

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 f4ce8084cb23619ef5fe9428ecc388ea

Email subscription for changes to this article
Save as PDF