Question

SSL Certificate Name Mistmatch

Hi,

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 miotks.co.uk where as the name mismatch is miotk.localhost.

Where am I able to change this?

Thanks in advance.


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@connormiotk

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.