如何将iOS的Push证书,转化为Java的APNs格式

Java APNS (com.notnoop.apns, v0.2.3) to send Push Notifications to my iOS app

传送门:《What’s the correct format for Java APNS certificate?》

TLDR:

  1. Export the private key from the Keychain and name it aps_private-key.p12.
  2. Convert the key with the following command

    make sure to enter a PEM pass phrase of at least 4 characters.
  3. Download the certificate for your app from https://developer.apple.com/account/ios/identifiers/bundle/bundleList.action. The downloaded file should be called something like aps_development.cer.
  4. Convert the certificate with the following command
  5. Generate the credentials using
  6. And I’m ready to use the credentials generated in step 5 (aps_dev_credentials.p12).

 

Leave a Reply

Your email address will not be published.