Created
March 8, 2016 11:28
-
-
Save knu/2a01a2cc788e97654cd8 to your computer and use it in GitHub Desktop.
Update an APNS certificate on SNS using aws CLI
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
arn=arn:aws:sns:... | |
p12=/path/to.p12 | |
aws sns set-platform-application-attributes --platform-application-arn "$arn" --attributes PlatformCredential="\"$(openssl pkcs12 -in "$p12" -nodes -nocerts)\"",PlatformPrincipal="\"$(openssl pkcs12 -in "$p12" -nodes -nokeys)\"" |
Thank you!
I'm glad this command still works for you guys!
I'm getting the same issue with my push certificate. I believe this is the solution that I'm looking for. I'd like to know how can I run this code. Can I get some help from you guys?
Thank you this was super useful 👏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much! 💯 Saved my day.