I have this site that I can access by using http://example.com but, if I change http for https, I get an error that states my connection isn't secure and the legend "NET::ERR_CERT_COMMON_NAME_INVALID" in Chrome. A similar problem happens with other browsers.
I don't know much about servers or SSL certificates so, any insight or suggestion about this will be really appreciated.