title: How to convert .p12 file to .pem file using Terminal?
body: <p>I already have an <code>development certificate in apple developer portal</code>. Am developing an iPhone app,i want to integrate Apple Push Notification in this app. I have created a <code>new App ID</code> with used the existing certificate and <code>enabled the Push Notification in this app id</code>. And i have created a <code>new Provisioning Profile</code> used the newly created app id. Before these steps i have created and downloaded the <code>.cer file from keychain access</code>. After done these steps i downloaded the newly <code>created SSL (Apple Push Notification Service SSL certificate) file and installed</code> in my Mac Keychain Access. Once i installed this file, verified (Green tick mark is there) and <code>got the .p12 file from this ssl file</code>.</p>
  
  <p>I followed the apple document <code>RemoteNotificationsPG.pdf</code>, in this document they mentioned after saved the .p12 file open the Terminal app and type below commends,</p>
  
  <pre><code>openssl pkcs12 -in Certificates.p12 -out Certificates.pem -nodes
  </code></pre>
  
  <p>I have used this in my Terminal app, but the error message is appear that is,</p>
  
  <pre><code>Error opening input file Certificates.p12
  Certificates.p12: No such file or directory
  </code></pre>
  
  <p>Can you please suggest or guide me where i did wrong or what i missed in these steps? Please help me. Thanks in advance.</p>
  
  <p>EDIT:</p>
  
  <p>I stored my Certificates.p12 file in my desktop. Folder path is <code>Desktop-&gt;1/5/2012_Certificate-&gt;2/5/12-&gt;Certificates.p12</code></p>
  
  <p>I have used <code>'ls' command</code> in Terminal it is not listing my Certificates.p12 file. </p>
  
  <p>I have typed <code>cd *path*</code> this returned <code>No such file or directory</code>.</p>
  
  <p>Please help me. Thanks in advance.</p>