Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I was having this issue as well, it turns out that for some reason my private key didn't match the one associated with the aps_developer_identity.cer I had...</p> <p>I ended up clearing <em>all</em> of my public and private keys from my 'login' keychain item, then I started the entire process over again (Generated the request)...I submitted the new request file on the program portal and generated a new certificate, downloaded, and installed it by double-clicking it (developer_identity.cer). Then, I reset the provisioning profiles to use the new Push SSL certs, downloaded those, and installed them by double-clicking (aps_developer_identity.cer). Finally, I reset the provisioning profile and downloaded the new one. I cleared out the old one in the Xcode Organizer, and installed the new one. Finally, I exported my 'private' key as key.p12 and my aps_developer_identity.cer as apsdi.p12, and ran the following commands against them:</p> <pre><code>openssl pkcs12 -clcerts -nokeys -out apsdi.pem -in apsdi.p12 openssl pkcs12 -nocerts -out key.pem -in key.p12 </code></pre> <p>If you're okay using a passphrase (recommended for production):</p> <pre><code>cat apsdi.pem key.pem &gt; cert.pem </code></pre> <p>If you wish to use a 'blank' passphrase, you'll need to unencrypt your private key first, <em>using the password you specified when you converted it to pem format</em>:</p> <pre><code>openssl rsa -in key.pem -out key.unencrypted.pem </code></pre> <p>And then cat the cert and unencrypted key into apns.pem (or whatever filename you have chosen):</p> <pre><code>cat apsdi.pem key.unencrypted.pem &gt; apns.pem </code></pre> <p>It's very important that you export your aps_developer_identity certificate, <em>not</em> your developer_identity certificate as apsdi.pem.</p> <p><em>If you can expand your developer_identity.cer and aps_developer_identity.cer entries in Keychain Access, and you see a 'private' key when you do, everything should work.</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload