Post a new question



Can HLS AES encryption be used for RTMP Live Pulled streams for edge servers?

Sulabh Khanal 2018-08-09 09:59:16 UTC in Nimble Streamer

Denis Slobodskoy 2018-08-10 08:31:52 UTC

HLS AES encryption can be used for HLS only, certainly it not applicable to RTMP; probably you mean RTMPS/RTMPE? Unfortunately, nimble doesn't support it.
If you need to encrypt traffic between origin and edge servers, we would recommend to use SRT protocol with encryption ( passphrase / pbkeylen parameters). Refer to this page for SRT support in Nimble:

Denis Slobodskoy 2018-08-10 09:07:03 UTC

If you just mean you want to perform AES encryption for your output HLS streams - origin of streams doesn't matter, so it can be applied to streams pulled by RTMP like any other stream. You can read about HLS AES encryption support here:

Sulabh Khanal 2018-08-13 10:05:24 UTC

Thank you. The second answer was what I wanted. I just want to perform AES Encryption for my output HLS streams. Do I perform the steps on my edge nimble servers?

Max 2018-08-13 10:18:58 UTC

Yes, it should be set up on edge servers.

Sulabh Khanal 2018-08-16 10:31:14 UTC

I am following step 1. from url for using encryption key hosted by Nimble, is there any other configuration that I need to perform?

I am getting "GET /test/ HTTP/1.1" on my nimble access log when a stream is requested but the playlist.m3u8 has only the following parameters


How do I get the aes key format? I have created an application and pulled a RTMP stream.

Max 2018-08-16 12:33:25 UTC


Master playlist does not contain a reference to hls.key, but chunklist does (check the content of chunks.m3u8). HLS AES key is just 16 bytes used as an encryption key.

Sulabh Khanal 2018-08-17 08:55:57 UTC


Thank you your explanation. I am a bit new to streaming and have only been recently testing nimble. I have the following data in the chunks.m2u8:


Does this mean my stream is aes encrypted?

Max 2018-08-17 09:00:52 UTC

Yes, HLS AES encryption is applied to that stream. If you download a chunk from this chunklist (e.g. l_934_22481738_2248.ts) it will not be played without decryption (try to play downloaded chunk file with e.g. VLC).

Post a reply

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.