In a trust chain, intermediates can be used and it can be hard to follow the chain. Here’s a few commands that can be helpful when debugging a chain:
openssl x509 -text -in <cert>