How to create a certificate to send APNS notifications, manually using OpenSSL

October 2014.

Create your key.

openssl genrsa -out 2048

Create the certificate request:

openssl req -new -key -out

Upload the CSR to Apple, and get the resultant certificate.

Optionally convert the certificate to PEM format.

openssl x509 -inform der -in -out

Check if you can connect to APNS with your credentials:

openssl s_client -connect -cert -key

Use the key and certificate files for profit.