1. ?Double-click to install the push certificate and add it to the signature of the keychain, as shown in the figure below, in the red circle, expand this certificate
2. ?First right-click Apple Production IOS PushServices:com.***.***, first export a .p12 file. Name it cert.p12. During the export process, you will be asked to enter the export password. Just enter the corresponding password. 3. Right-click on 2012.04.27_push_production_***, export a .p12 file, named key.p12, the same as above, you will be asked to enter the export password during the export process, just enter the corresponding password.
4. ?So far, we already have two .p12 files. Put them in the same folder (aaa) and need to convert the two .p12 files into .pem files.
a. First open the terminal, switch to the folder aaa and execute it
During execution, you will be asked to enter a password. Enter the password you just set to generate a cert.pem document.
b. Execute again
At this time, pay attention to the prompts in the terminal. The password entered for the first time is the password when generating the certificate, and the password entered for the second and third times is to set the key. New password for .pem.
c. If you need not to encrypt the key, execute the following statement
d. Then you can merge the two .pem files. This ck.pem is the certificate required by the server. .
At this point, just give the generated ck.pem to the server-side personnel