Why do I receive a wrong certificate error via HTTPS?

Browse by products and services

  • Applies to: All DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: SSH, root access, vi knowledge


If you receive a wrong SSL certificate error when you open any domain via HTTPS, this article may help.


Before you start, this article has the following dependencies:


Connect via SSH to your DV.

Look into /etc/httpd/conf.d/ssl.conf for the line like:

<VirtualHost _default_:443>

If it exists, you have to delete/comment out this default SSL virtual host starting from the "<VirtualHost _default_:443>" line and ending with "</VirtualHost>".

Then, stop and start Apache server. Do not restart Apache.

/etc/init.d/httpd stop && /etc/init.d/httpd start