Skip to content

Instantly share code, notes, and snippets.

@sunng87
Created March 22, 2016 06:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunng87/50d7bd3ad20e93f69067 to your computer and use it in GitHub Desktop.
Save sunng87/50d7bd3ad20e93f69067 to your computer and use it in GitHub Desktop.
test if p12 certificate is valid or not
#!/usr/bin/bash
TEMP_KEY=/tmp/tmpkey
openssl pkcs12 -in $1 -nodes -out $TEMP_KEY
openssl s_client -connect gateway.push.apple.com:2195 -cert $TEMP_KEY -key $TEMP_KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment