Secure Streaming to Iphone using AES-128

Hi there … I’m streaming live using AES encryption to Iphone

So far, I’m doing it with a key generated through genkey, and having a key file on /wowza/keys folder

this key is read when Wowza is started, so I tried other methods too

My streams are 24x7, with long sessions … I’m wondering how can I dynamically change the key, for instance, every 4 hours without stopping Wowza nor the stream … in a way I can control, so I change encryption key at same time I publish the new key

Thanks for the help

I’m not sure about changing key while streaming. Wowza is encrypting each chunk. You could try it, but it might not work.

Richard

We really don’t have a precise way to do key rolling. The key is only read when the live stream packetizer is started. So to make the exchange you will need to write some code that forces the live stream repeater to reset. When you exchange keys current sessions that are playing the stream will be interrupted. I do not have precise instructions. In theory you should be able to put the new key in the [install-dir]/keys folder and stop the live stream packetizer. To stop the live stream packetizer you should be able to call:

MediaStreamMap.removeLiveStreamPacketizer(streamName);

It should re-start automatically. Again, we have not tried this and for sure current sessions will be interrupted.

Charlie

I am not sure if it will work, you will have to test it.

Richard

I don’t know.

Richard

not sure if I follow your message … could you rephrase it somehow?

Thanks

it will work as new key info should be inserted on the m3u8 … what I don’t know is how to do it, meaning, how to chage the key on the fly