title: Python p12 to pem
body: <p>I am trying to understand about openssl and certificates and also Python.</p>
  
  <p>So I have this .cert.p12 file. I would like to convert it to .pem format.</p>
  
  <p>I use </p>
  
  <pre><code>openssl -in input.cert.p12 -out output.pem -nodes
  </code></pre>
  
  <p>This creates the pem file.</p>
  
  <p>How would I do the same process in Python? Take in a p12 file and covert it to a pem format?</p>