-
-
Save rborn/f4b857344d99c73b45166ce6a231c0bb 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