SSL Certificate Name Mistmatch

April 10, 2017 1.4k views
Let's Encrypt DigitalOcean Security Ubuntu 16.04


I have used Let's Encrypt on my site but when I go on it I am getting the unsecure icon and when I test the site on a testing site, it appears that there is a name mismatch.

The certificate is for where as the name mismatch is miotk.localhost.

Where am I able to change this?

Thanks in advance.

1 Answer


When you create the certificate using LetsEncrypt, you need to pass all valid domains through at the time of execution. If you are seeing a mismatch, either the correct domains were not passed through to the script or you are serving content from a domain or local domain that isn't actually secured by SSL.

If you're seeing miotk.localhost, it's either in your configuration (VirtualHost or Server Block) or code (links to images and other files). Those would be the first two places I would check, after validating that the correct domains were passed through to the LE script.

Have another answer? Share your knowledge.