Apple Development Certificate, there is a root certificate, the root certificate can be bound to the relevant developer device cooperation to develop an app project, if it is a multi-person team general Root certificate is the boss to fix and unified management of our equipment, this time boss he will use his computer keychain to generate P12 files, Then we'll use the root certificate together.
However, the development of Apple push function is not necessarily the boss, such as the eldest brother to me to get this push certificate and add push function to the app, and the generation of Apple's push CER suffix certificate, of course, in my computer generated, of course, must be used by the boss of the developer account login to the Apple official website, And to download a push certificate that matches the same bundle ID as the app:
After downloading, be sure to double-click, let it appear in My Computer keychain,
Then the reader you can according to this: http://blog.csdn.net/showhilllee/article/details/8631734 in the Five points mentioned: five from the keychain access to export the secret key To get push-P12 files and Pem files needed in the background.
Note that this P12 file must be pushed to the certificate generated, not the root certificate generated by the P12 file, do not be mistaken.
Again, because the creation of a push certificate for an app can be different from the one created by the root certificate, that is, the certsigningrequest is not the same as the keychain, so the private key is not the same, when the PEM is generated, be careful to use the private key of the push certificate!
If it is not the P12 file generated by the push certificate, I will test it out by myself. The result of the failure:
The function module of iOS development--the solution of push pit problem