How to Create a p12 certificate for IOS push
1. Generate a CertificateSigningRequest. certSigningRequest file with a key string
2. Create an appid and download the corresponding certificate.
3. Double-click the certificate corresponding to ssl, for example, aps_development.cer.
4. Expand the certificate after aps_development.cer installation in the key string and export the private key (export format: p12)
5. Convert the downloaded ssl Certificate aps_development.cer to the pem format. Run the following command:
Openssl x509-in aps_production.cer-inform DER-out aps_production.pem-outform PEM
6. Convert the exported p12 key to pem. Command
Openssl pkcs12-nocerts-out o2o_key_dev.pem-in o2o_key_dev.p12
7. Pack the pem files generated in 5 and the pem files generated in 6 and the exported files in 1 into the final p12 file.
Openssl pkcs12-export-in aps_production.pem-inkey o2o_key_dev.pem-certfile CertificateSigningRequest. certSigningRequest-name aps_o2o_dis-out aps_o2o_dis.p12
Note: to export a certificate to a colleague, you only need to export the certificate installed on the computer to the P12 file and the authorization file to the colleague, it is different from the above 4. Remember to note that if you want your colleague to export ipa through the publishing certificate you have given, he needs to enter the developer account and password.