Skip to content

Instantly share code, notes, and snippets.

@cybertk
Created March 3, 2015 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybertk/fab6f469924d3bbfd9fb to your computer and use it in GitHub Desktop.
Save cybertk/fab6f469924d3bbfd9fb to your computer and use it in GitHub Desktop.
APNS-cert.rake
namespace :apns do
task :verify do
openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert server_certificates_bundle_sandbox.pem -key server_certificates_bundle_sandbox.pem
openssl s_client -connect gateway.push.apple.com:2195 -cert pnpush.pem -key pnpush.pem
end
task :p12topem do
openssl pkcs12 -in apns.p12 -out apns.pem -nodes -clcerts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment