Wrong SSL cert sent to browser

3 posts / 0 new
Last post
#1 Wed, 10/18/2017 - 10:21

Wrong SSL cert sent to browser


I have a Virtualmin server for a single website. I first create the virtual server without SSL but since I need to add security, I finally activate SSL for the virtual server. I use a Let's Encrypt SSL certificate but when I want to access the virtual server, I don't get the good SSL certificate (the one from let's encrypt) but I get the "default" localhost certificate.

How is it possible ? How can I tell Apache to use the good certificate ?

Thank you for your help.

Wed, 10/18/2017 - 11:07

Do you also have a virtualserver or better alias for you hostname/localhostname domain. ? so LE cert on domain.tld and on hostname ( where hostename should be something like whatever.domain.tld. )

And all resolving dns, ns for those.

Thu, 10/19/2017 - 03:46

Jfro: Thank you for your response. I don't really understand what you mean. The server domain name and virtual server are the same. So I delete the default localhost:443 virtualhost and everything is working now.

Thank you for your help :)

Topic locked