How to Create a p12 certificate for IOS push

Source: Internet
Author: User
Tags key string openssl x509 pkcs12 ssl certificate

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.