title: Reading data from a certificate file
body: <p>I have a local setup of Open SSL. For every certificate request i create a ...cert.pem and ...pfx file.
  I need open the cert.pem and the pfx to read the below data
  1) Certificate serial id
  2) Expiry date
  3) Validity date</p>
  
  <p>Is there some API that can help me do this?</p>