title: Python: reading a pkcs12 certificate with pyOpenSSL.crypto
body: <p>I have a valid certificate issued by the spanish authority (FNMT) and I want to play with it to learn more about it.
  The file has extension .p12</p>
  
  <p>I would like to read the information in it (first and last name) and check if the certificate is valid. Is it possible to do that with pyOpenSSL? I guess I have to use the crypto module in OpenSSL.
  Any help or useful link? Trying reading here: <a href="http://packages.python.org/pyOpenSSL/openssl-crypto.html" rel="noreferrer">http://packages.python.org/pyOpenSSL/openssl-crypto.html</a> but not much information :-(</p>