Skip to content

Instantly share code, notes, and snippets.

@jellyninjadev
Last active August 29, 2015 14:02
Show Gist options
  • Save jellyninjadev/db22657a2121871aae4c to your computer and use it in GitHub Desktop.
Save jellyninjadev/db22657a2121871aae4c to your computer and use it in GitHub Desktop.
#!/bin/bash
openssl x509 -in $1 -inform der -out cert.pem &
wait
openssl pkcs12 -nocerts -out key.pem -in $2 &
wait
cat cert.pem key.pem > apns-cert.pem
rm cert.pem
rm key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment