Configured Certificates

Want to list all certificates a server sends?

server=google.com:443

echo \
	| openssl s_client -showcerts -connect $server 2>&1 \
	| while openssl x509 -noout -subject -issuer; do
        echo;
	done

Also works with a .pem containing multiple certificates.

Based on this stackexchange answer.