Created
July 11, 2016 10:22
-
-
Save ramakser/dff92afb93c5ad784dcba5f493bf3acb to your computer and use it in GitHub Desktop.
APNS server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From within KeyChain export the following both in p12 format, without giving password: | |
Apple Development Push Services certificate as cert.p12 | |
primary key under Apple Development Push Services as pkey.p12 | |
In terminal go to the directory where you have exported the certificates and convert the p12 files to pem format and concatenate them as follows: | |
$ openssl pkcs12 -in pkey.p12 -out pkey.pem -nodes -clcerts | |
$ openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts | |
$ cat cert.pem pkey.pem > iphone_ck.pem | |
iphone_ck.pem is the certificate you need. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment