Skip to content

Instantly share code, notes, and snippets.

View Basscord's full-sized avatar

Brian Mau Basscord

  • UenMe
  • Los Angeles CA
View GitHub Profile
@Basscord
Basscord / gist:44e86df183e511ddf19fcfdced532446
Last active May 15, 2020 23:33 — forked from kublaios/gist:f01cdf4369c86ddd6d71
Making a PEM File for iOS Push Notifications (From Ray Wenderlich's tutorial)
# First, export aps-key.p12 from aps.cer (on MacOS, can be done from Keychain)
# In Keychain, navigate to "My Certificates", then select the private key of the cert.
# https://stackoverflow.com/questions/15662377/unable-to-export-apple-production-push-ssl-certificate-in-p12-format
# Convert the .cer file into a .pem file:
$ openssl x509 -in aps.cer -inform der -out aps-cert.pem
# Convert the private key’s .p12 file into a .pem file:
$ openssl pkcs12 -nocerts -in aps-key.p12 -out aps-key.pem