The production of the IOS push certificate

Source: Internet
Author: User

The P12 file for the iOS push certificate is not a certificate file directly from keychain. It needs to be made by the OpenSSL tool. (Fortunately, Mac OS has the OpenSSL command by default)

For different server platforms, the required certificate is different, first say. NET Framework for the development of the server's certificate production:

(for development and publication purposes, the order is the same.) Only need to provide the appropriate type of documents can be)

To open a command terminal:

Get a pre-made push certificate to make a PEM file

OpenSSL x509-in aps_production.cer-inform der-out aps_production.pem-outform PEM

Export the push certificate from keychain CERTIFICATES.P12

OpenSSL pkcs12-nocerts-out push_noenc.pem-in CERTIFICATES.P12


This step will prompt for input password, enter the password when you export the P12 file, no password directly enter

Enter Import Password:

After entering password

MAC verified OK


Create a certificate for server push

OpenSSL pkcs12-export-in Aps_production.pem-inkey push_noenc.pem-certfile Certificatesigningrequest.certsigningrequest-name "Aps_production"-out aps_production.p12

The above actions are actions under the same folder.


PHP Platform:

References:

Generation of PEM files in the iOS messaging push mechanism

The production of the IOS push certificate

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.