1

How to exactly configure and implement iOS push notification in PHP server? .Net server need .p12 file. But what exactly need for PHP server?

Baumannzone
  • 688
  • 2
  • 20
  • 33
Solid Line
  • 63
  • 9

2 Answers2

3

Export Push certificate from keychain Go to .p12 directory in command line. Execute following

openssl pkcs12 -in Certificates_push_dev.p12 -out Certificates_push_dev.pem -nodes -clcerts

Here is the PHP Code

Jamil
  • 2,806
  • 1
  • 10
  • 20
0

You need to create .pem certificate which you can use in your .php file including passphrase

Bhavi Lad
  • 207
  • 2
  • 7
  • @SolidLine when you create .p12 mac ask you to put Password to you generated .pem this called passphrase – Ahmed Abdallah May 12 '16 at 12:51
  • passphrase is for security purpose, when you create .p12 certificate from Keychain Access, you can assign Password or you can keep it blank. – Bhavi Lad May 12 '16 at 13:00