-
-
Save rborn/4f1ed78aaea7f86e38d76eb345c66c41 to your computer and use it in GitHub Desktop.
Update an APNS certificate on SNS using aws CLI
This file contains 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