Created
March 22, 2016 06:22
-
-
Save sunng87/50d7bd3ad20e93f69067 to your computer and use it in GitHub Desktop.
test if p12 certificate is valid or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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