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)\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you this was super useful 👏