Certificates - Determine which keys are stored in a given .pem

openssl x509 -text -in given.pem

The .pub is the certificate (aka public key) part.