Connection to site isn't secure

I am unable to access site. It shows "connection to this site is not secure". If I change the dns to on my laptop or phone network configuration, it does work. Also I don't have this issue with any other sites.

Any idea how to troubleshoot this to fix it?

root@43e590684d0b:/# host localhost
Using domain server:
Name: localhost
Aliases: is an alias for has address
root@43e590684d0b:/# echo | openssl s_client -connect 2>/dev/null | openssl x509 -text
unable to load certificate
140065633132608:error:0906D06C:PEM routines:PEM_read_bio:no start line:../crypto/pem/pem_lib.c:686:Expecting: TRUSTED CERTIFICATE```