Make an Apple push notification APNs server certificate file

Source: Internet
Author: User
Tags ssl certificate

1. Prepare the certificate request file

  • Open the Keychain Access program in your Apple utility
  • Select Keychain Access, Certificate Assistant, request a certificate from a certification authority
  • Enter the e-mail address, the common noun casually named, here named APNs
  • Save the generated apns.certsigningrequest file to a local disk by selecting store to disk
  • At this point, in the Keychain Access program's key (keys) category should be able to find the APNS private key, right-click Export "APNS" to export the private key to P12 file, save will prompt for a password, input and generate APNS.P12 file

2. Prepare the app ID and SSL certificate

  • Login to the Apple Developer Portal and click into iOS Provisioning Portal->app IDs
  • Click on the new app ID, fill in the name and bundle Identifier of your application
  • Click Configure to select the Enable for Apple Push Notification Service
  • Click the Configure button for development push SSL Certificate (Production push SSL Certificate follow the same steps)
  • Click Continue, select the apns.certsigningrequest you just generated click Generate
  • Wait a few seconds to complete the certificate generation, click Continue, and download the generated certificate Aps_development.cer

3. Create the P12 file required by the push server
using OpenSSL generated under the MAC command line: CSR certification signing Request file (Apns.certsigningrequest), private key (APNS.P12), SSL certificate (aps_development.cer)

- in Aps_development.cer-inform DER- out Aps_development.pem--nocerts- out Apns_ Noenc.pem-in-export-in"aps_development" - out Aps_development.p12

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.