# What EncUrl can I set to encrypt live stream in WowzaModule?

**URL:** <https://community.wowza.com/t/what-encurl-can-i-set-to-encrypt-live-stream-in-wowzamodule/93681>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 10, 2021, 9:01am UTC](https://community.wowza.com/t/what-encurl-can-i-set-to-encrypt-live-stream-in-wowzamodule/93681 "2021-08-10T09:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julia\_Karwat](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Julia\_Karwat](https://community.wowza.com/u/Julia_Karwat)\
**Post date:** [August 10, 2021, 9:01am UTC](https://community.wowza.com/t/what-encurl-can-i-set-to-encrypt-live-stream-in-wowzamodule/93681/1 "2021-08-10T09:01:16Z")

</div>

Is there another encURL that I can enter in the method?

```auto
    public void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName,
            CupertinoEncInfo encInfo, long chunkId, int mode) {

        if (streamName.startsWith("aes")) {

            getLogger().info("http://localhost:1935/wowza/" + streamName + "/playlist.m3u8");

            encInfo.setEncMethod(CupertinoEncInfo.METHOD_SAMPLE_AES);
            encInfo.setEncUrl("http://mycompanykeyserver.com/authenticate.aspx");
            encInfo.setEncKeyBytes(BufferUtils.decodeHexString("123456789ABCDEF123456789ABCDEF12"));
            encInfo.setEncIVBytes(BufferUtils.decodeHexString("FEDCBA9876543210FEDCBA9876543210"));
            encInfo.setEncKeyFormat(CupertinoEncInfo.APPLE_KEYFORMAT_IDENTITY);
            encInfo.setEncKeyFormatVersion("1");
            getLogger().info("FairPlay encryption aes");
        }

    }

```

When I use “[http://mycompanykeyserver.com/authenticate.aspx](http://mycompanykeyserver.com/authenticate.aspx)” I have this error:

```auto
An error occured

CODE: 208
TYPE: media.err.src.not.supported

```

Is there an alternative url or a way to encryption the live stream?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 11, 2021, 7:09pm UTC](https://community.wowza.com/t/what-encurl-can-i-set-to-encrypt-live-stream-in-wowzamodule/93681/2 "2021-08-11T19:09:40Z")

</div>

Unfortunately, I’m not familiar enough with that and technical support doesn’t monitor the forums. You will need to send in a support ticket to receive help from an engineer that works with the modules and encryption.
