# Secure HLS streaming using DRM encryption Error

**URL:** <https://community.wowza.com/t/secure-hls-streaming-using-drm-encryption-error/96970>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 11, 2024, 3:24pm UTC](https://community.wowza.com/t/secure-hls-streaming-using-drm-encryption-error/96970 "2024-03-11T15:24:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nagy\_Istvan](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@Nagy\_Istvan](https://community.wowza.com/u/Nagy_Istvan)\
**Post date:** [March 11, 2024, 3:24pm UTC](https://community.wowza.com/t/secure-hls-streaming-using-drm-encryption-error/96970/1 "2024-03-11T15:24:37Z")

</div>

Hy,

how-to-secure-apple-hls-streaming-using-drm-encryption#hls-encryption-api-methods5  
Generate .jar this:

package com.soul.eas;

import com.wowza.wms.httpstreamer.cupertinostreaming.file.IHTTPStreamerCupertinoIndex;

import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerSessionCupertino;

import com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo;

import com.wowza.wms.httpstreamer.cupertinostreaming.\*;

import com.wowza.wms.module.ModuleBase;

import com.wowza.util.BufferUtils;

import com.wowza.util.\*;

public class Wmseas extends ModuleBase {

public void onHTTPCupertinoEncryptionKeyVODChunk(HTTPStreamerSessionCupertino httpSession, IHTTPStreamerCupertinoIndex index, CupertinoEncInfo encInfo, long chunkId, int mode)

{

encInfo.setEncMethod(CupertinoEncInfo.METHOD\_AES\_128);

encInfo.setEncUrl("//url/auth.php");

encInfo.setEncKeyBytes(BufferUtils.decodeHexString(“123456789ABCDEF123456789ABCDEF12”));

encInfo.setEncIVBytes(BufferUtils.decodeHexString(“FEDCBA9876543210FEDCBA9876543210”));

encInfo.setEncKeyFormatVersion(“1”);

}}

Adding Wowza and HLS Stream not working not generating playlist.m3u8 400 error. Wowza not logs 😕 please help! Latest Wowza.

---

<div class="post-metadata">

**Author:** ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)\
**Post date:** [March 23, 2024, 12:21pm UTC](https://community.wowza.com/t/secure-hls-streaming-using-drm-encryption-error/96970/2 "2024-03-23T12:21:12Z")

</div>

Hello @Nagy_Istvan

I would recommend creating a support ticket for further review.

> **[Open a Support Ticket](https://www.wowza.com/support/open-ticket)**
>
> Open a Wowza suppor ticket so our technical support engineers worldwide can help you succeed with your Wowza software and services.

We’ll need the below info when creating the ticket:  
[install-dir]/conf  
[install-dir]/logs (logs will be needed after a Wowza restart and a repro of the issue)
