So I want to monitor my certificates on my web server which has multiple certificates that Apache is severing via virtual hosts for different domains.
How can I get openssl s_client -connect to display the certificate information for each of the certificates ?
I've tried something like the following, but it just returns the certificate I would see if I went to the site manually via the ip address.
echo "GET
https://test.example.com/ HTTP/1.1" | openssl s_client -state -nbio -connect test.example.com:443 | openssl x509 -noout -text
Also is there away I could do this with curl?