SSL Certificate Name Mistmatch


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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


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.