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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s