Monthly Archives: February 2012

APNS + .PEM Genaration

How to genarate .pem certificate form .p12 and .cer

Step 1 ) openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12( your .p12 file )
note : for creation cert.pem

Step 2 ) openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
note : for creation dev-ket.pem

Step 3 ) openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
for creation
note : for creation key-noenc.pem

Step 4 ) cat apns-dev-cert.pem apns-dev-key-noenc.pem > apns-dev.pem
note : for creation final apns-dev.pem which we have to send to server side.

Leave a comment

Posted by on February 18, 2012 in Uncategorized