I needed to take a look at a .pem cert file to take a look at the expiration dates.

What do you know openssl makes it somewhat easy to do this.

openssl x509 -in invoke.coffee.pem -text

There you go all the signing info. expiration, signing algorithms etc.