# How to configure encoding with ClearKey "DRM"?

**URL:** <https://community.bitmovin.com/t/how-to-configure-encoding-with-clearkey-drm/2536>\
**Category:** Support\
**Tags:** drm, bitmovin, azure\
**Created:** [December 20, 2023, 9:35am UTC](https://community.bitmovin.com/t/how-to-configure-encoding-with-clearkey-drm/2536 "2023-12-20T09:35:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafal.i](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rafal.i](https://community.bitmovin.com/u/rafal.i)\
**Post date:** [December 20, 2023, 9:35am UTC](https://community.bitmovin.com/t/how-to-configure-encoding-with-clearkey-drm/2536/1 "2023-12-20T09:35:21Z")

</div>

Hello,

I’m trying to implement a simple DRM-like mechanism using MPEG-CENC ClearKey. For this purpose, using Postman I recreated the HTTP requests to match the ones used in the example:  
[Github SDK Example](https://github.com/bitmovin/bitmovin-api-sdk-examples/blob/main/dotnet/Bitmovin.Api.Sdk.Examples/CencDrmContentProtection.cs)

The only difference is that in the “CreateDrmConfig” step I do not pass the configuration to Widevine and FairPlay, only key and kid and output config.

All sent requests are successful, but the encoding itself fails. I’m only getting error messages “HLS manifest creation failed” and “Encoding has failed.” What’s interesting it looks like DASH manifests is created succesfully however the HLS manifest that I am more interested in is not.

Here’s the exported collection from Postman where you can see which request I sent and what theri body was: [Postman Collection](https://drive.google.com/file/d/1bSbV5PRQl5h6nk6FMqvChwXMLr3yvlce/view?usp=sharing)

Could anyone please tell me what I’m doing wrong?

Also I could really use any tips on how to configure codecs to work similiar to those generated by Simple Encoding Job.

---

<div class="post-metadata">

**Author:** ![ludovic.michaud](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/ludovic.michaud/32/811_2.png) [@ludovic.michaud](https://community.bitmovin.com/u/ludovic.michaud)\
**Post date:** [December 27, 2023, 4:30pm UTC](https://community.bitmovin.com/t/how-to-configure-encoding-with-clearkey-drm/2536/2 "2023-12-27T16:30:38Z")

</div>

Hi Rafal,  
Can you please retry the same encoding job after specifying an arbitrary Playready LA\_URL in the CENC configuration (although I know it is not needed for playback)?  
There might be an issue where our HLS manifest Generator checks for Playready LA\_URLs and causes the manifest to fail if it is not present.

Please let us know how it goes

---

<div class="post-metadata">

**Author:** ![rafal.i](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rafal.i](https://community.bitmovin.com/u/rafal.i)\
**Post date:** [January 8, 2024, 7:07am UTC](https://community.bitmovin.com/t/how-to-configure-encoding-with-clearkey-drm/2536/3 "2024-01-08T07:07:04Z")

</div>

Hi, sorry for my late response.

In my case, I rely only on simple ClearKey security. I don’t use any commercial DRM like Playready. How do I provide Playready LA\_URL if I do not have a license for Playready or any other DRM?
