Sending iOS notification through a php script: 'Unable to set private key file'

后端 未结 7 1599
囚心锁ツ
囚心锁ツ 2021-01-06 00:49

I have used the php script from the well known Ray Wanderlich tutorial to send push notifications during development phase. They were triggered properly after I created the

7条回答
  •  不知归路
    2021-01-06 00:57

    It was not the correct p12 file. I exported the correct p12 file from Keychain and it went well.

    Lessons learnt -

    1. If the p12 and cer files you are using do not correspond to each other, obviously there wouldn't be any error shown during the concatenated pem file creation. But when you execute the script, there will be an error shown.

    2. The above error messages do not necessarily imply that the p12 file's passphrase is incorrect. They may also mean that the p12 file does not correspond to the used cer file.

提交回复
热议问题