Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm having the same problem but this seems to have solved it for me. Apparently, my <code>.pem</code> still had a password, and that was the problem. So here I'll describe how to generate a <code>.pem</code> with no password.</p> <p>This blog post outlines how to get the 2 '.pem' files (Cert and Key) you need and how to concatenate them. <a href="http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12" rel="nofollow">http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12</a>. (You can use a password to generate the <code>.pem</code> files for now - we will strip the password later).</p> <p>Here's 2 commands that will help you check if your 2 <code>.pem</code> files are ok. This first command just checks if you can connect to APNS.</p> <pre><code>$ telnet gateway.sandbox.push.apple.com 2195 </code></pre> <p>This second command will check if your <code>.pem</code> files are ok - you'll get a bunch of output, if you've connected successfully. If successful, and if you input some random text, it will disconnect. If you can't connect, it'll output an error message.</p> <pre><code>$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert PushChatCert.pem -key PushChatKey.pem </code></pre> <p>After you have your concatenated <code>.pem</code>, you have to get rid of its password for pyapns. To do this, use this command on your <code>.pem</code>.</p> <pre><code>$ openssl rsa -in haspassword.pem -out nopassword.pem </code></pre> <p>And that should be it. I hope this helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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