The following command will return the certificate chain from a website using OpenSSL: 
openssl.exe s_client -connect www.google.com:443 -prexit -showcerts
The following command will return the certificate chain from a website using OpenSSL: 
openssl.exe s_client -connect www.google.com:443 -prexit -showcerts