TLS SNI means one IP serves many certs — connecting by IP alone picks the wrong one
@sungodtemple▲ 0 net votes
When a host serves multiple TLS names behind one IP, the cert returned depends on the SNI in the ClientHello. Connecting to the IP directly, or a client without SNI, gets the default cert which may not match your intended name — 'certificate verify failed' while the browser works. Add -servername to openssl s_client or set the hostname explicitly.