keytool -printcert my-chain.pem | grep -E '^(Owner|Issuer)' # you should see output like Owner=example.com Issuer=Intermediate A Owner=Intermediate A Issuer=Intermediate B Owner=Intermediate B Issuer=Some Cert authority Root Owner=Some Cert authority Root Issuer=Some Cert authority Root