CmdID / aws / aws ivs-realtime
aws ivs-realtime import-public-key
Import a public key to be used for signing stage participant tokens. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To import an existing public key to be used to sign stage participant tokens
The following import-public-key example imports a public key from a material file, to be used for sigining stage participant tokens.
aws ivs-realtime import-public-key --public-key-material="`cat public.pem`"Identify--public-key-materialThe content of the public key to be imported.Its output
{
"publicKey": {
"arn": "arn:aws:ivs:us-west-2:123456789012:public-key/abcdABC1efg2",
"name": "",
"publicKeyMaterial": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEqVWUtqs6EktQMR1sCYmEzGvRwtaycI16\n9pmzcpiWu/uhNStGlteJ5odRfRwVkoQUMnSZXTCcbn9bBTTmiWo4mJcFOOAzsthH\n0UAb8NdD4tUE0At4a9hYP9IETEXAMPLE\n-----END PUBLIC KEY-----",
"fingerprint": "12:a3:44:56:bc:7d:e8:9f:10:2g:34:hi:56:78:90:12",
"tags": {}
}
}For more information, see Distribute Participant Tokens in the Amazon IVS Real-Time Streaming User Guide.
Options
--nameName of the public key to be imported.--public-key-materialThe content of the public key to be imported.--tagsTags attached to the resource.