Subject: | HTTPS Server Name Indication support |
Hi,
I came across a server where both Chrome and IE showed one certificate while Net::SSL::ExpireDate showed the expiry date for another certificate.
This was due to the browsers using TLS Server Name Indication aka SNI.
I determined the problem by running openssl s_client with and without the -servername parameter. Eg:
$ echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -text
It would be useful if Net::SSL::ExpireDate used SNI by default and perhaps had an option to not use SNI. Thank you.
Cheers,
Chad