title: How to convert .cer file to .pem file
body: <p>I had export .cer file from keychain and using below command try to convert in .pem file but in resulted .pem file missing </p>
  
  <p>-----BEGIN PRIVATE KEY-----</p>
  
  <p>please any one can give another way to do that</p>
  
  <p>command are like</p>
  
  <pre><code>openssl pkcs7 -text -in certfile.cer -print_certs -outform PEM -out certfile.pem
  </code></pre>