Google Chrome says connection is not secure but certificate is valid

I have a little development lab sitting behind haproxy frontend and several back end servers.

For my webserver I use ssl termination on the haproxy server but when I load the site on chrome it says connection is not secure but certificate is valid. The cert is from LetsEncrypt and it is not a wild card, the common name is correct and it works perfectly on Firefox.

The certificate gets an A rating from ssl-labs www.labgasflow.com

Any ideas ?

Which network is your chrome running in?
[try it from your phone or some other Internet location]

SSL-Labs rates what it sees from the Internet point of view.
Your chrome point of view may be very different.

The cert a browser sees is a wildcard. You have your domain proxied at Cloudflare so the browser first connects to the Cloudflare CDN edge. That edge has its own cert usually created by Cloudflare Universal SSL. And, these are rarely the cause of any failure (I can't recall ever seeing one actually). You should have seen this wildcard in SSL Labs report. Or, see here: SSL Checker

Your Origin server may be using a non-wildcard but we know that is fine. If the Cloudflare edge sees an invalid cert when connecting to your origin the error is a specific and obvious error page.

So, what to do? :slight_smile:

Use Chrome's Developer Tools and check the Console section messages. It will say very clearly what the problem is. The problem could be something like you have an HTTP reference in your page (not HTTPS). The Console messages will make it clear.

Wouldn't Firefox be failing then too? And how could SSL Labs test succeed if the wrong cert was being sent?

Yeah, didn't I just say that?

Did you put together that info on your own. Kind of sounds like a mixed bag of AI assistance some of which is contradictory

The exact text under Chrome's warning (the NET::ERR_... code) would narrow this down a lot. Since Firefox and SSL Labs are both happy and the domain sits behind Cloudflare, I'd suspect something local to that Chrome first. Try an Incognito window or another profile to rule out cached HSTS or cert state. Also click the "Not secure" chip, open the certificate details and check who issued what Chrome actually sees. If it isn't a public CA, an antivirus or corporate proxy is probably intercepting HTTPS. A wrong system clock on that machine causes the same symptom. If it's only the "not fully secure" padlock rather than a full-page error, that's mixed content, and the DevTools Console will list the http:// resources.