Forum

Post a new question

Categories:

Tags:

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
Edcf63a6777273a6b2842c94c45cdc33

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

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: https://wmspanel.com/nimble/srt

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

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: https://blog.wmspanel.com/2015/02/hls-aes-encryption-drm-support-nimble-streamer.html

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

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
Ba425406063261ec184229ed0d5a200d

Yes, it should be set up on edge servers.

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

Hello,
I am following step 1. from https://blog.wmspanel.com/2015/02/hls-aes-encryption-drm-support-nimble-streamer.html url for using encryption key hosted by Nimble, is there any other configuration that I need to perform?

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

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=2317671,RESOLUTION=1920x1072,CODECS="avc1.42c028,mp4a.40.2"
chunks.m3u8?nimblesessionid=2

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
Ba425406063261ec184229ed0d5a200d

Hello,

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
Edcf63a6777273a6b2842c94c45cdc33

Hi,

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:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:2248
#EXT-X-KEY:METHOD=AES-128,URI="hls.key?nimblesessionid=4"
#EXTINF:10.01,
l_934_22481738_2248.ts?nimblesessionid=4
#EXTINF:10.01,
l_934_22491748_2249.ts?nimblesessionid=4
#EXTINF:10.01,
l_934_22501758_2250.ts?nimblesessionid=4
#EXTINF:9.977,
l_934_22511768_2251.ts?nimblesessionid=4

Does this mean my stream is aes encrypted?

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

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.