# How to generate Secure Token For CDN Stream Target

**URL:** https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544
**Category:** Wowza Streaming Engine
**Created:** [August 26, 2017, 12:26am UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544 "2017-08-26T00:26:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Amit\_Mittal1](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Amit\_Mittal1](https://community.wowza.com/u/Amit_Mittal1)
#### Post date: [August 26, 2017, 12:26am UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/1 "2017-08-26T00:26:54Z")

</div>

Hello,

I am using latest version of Wowza Streaming engine with Wowza CDN.

I have been trying to generate Secure token by following your guide at  
[https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#about](https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#about)

I am not really into coding so i am not able to understand how to implement the php code in sample query with the stream.

I want to create a php page having wowza player with secure token, i have followed everything on that page except i am not able to generate a unique token with the php sample, Please provide me with a complete code/process to generate token and implement it with wowza player. Any random stream name/shared secret would be fine.

Thank you.

---

<div class="post-metadata">

### Author: ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)
#### Post date: [August 26, 2017, 3:44pm UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/2 "2017-08-26T15:44:08Z")

</div>

Hello,

Thanks for contacting the Wowza Community

You can download code here:

[https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#query](https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization#query)

Once you download the code, you can then get the PHP code and modify it to your token secret and generate the tokens. If you need assistance with the code and updating, here is link to the consultant posts:

[https://www.wowza.com/community/spaces/26/find-a-consultant.html](https://www.wowza.com/community/spaces/26/find-a-consultant.html)

Hope this helps.

Regards,

Jermaine

---

<div class="post-metadata">

### Author: ![Ludovic\_PAQUET](https://avatars.discourse-cdn.com/v4/letter/l/3be4f8/32.png) [@Ludovic\_PAQUET](https://community.wowza.com/u/Ludovic_PAQUET)
#### Post date: [November 14, 2018, 10:08am UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/3 "2018-11-14T10:08:56Z")

</div>

Hello,

This post is a little old but I would like to be sure, token for wowza cdn is a feature of wowza streaming cloud ? not streaming engine ?

---

<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: [November 14, 2018, 10:39pm UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/4 "2018-11-14T22:39:58Z")

</div>

Great question [@Ludovic PAQUET](http://community.wowza.com/community/questions/45180/how-to-generate-secure-token-for-cdn-stream-target.html#) and requires some clarification.

1. For a Wowza Streaming Cloud only workflow, the Cloud service can secure Wowza CDN stream targets with [Cloud token authorization](https://www.wowza.com/docs/how-to-protect-a-wowza-cdn-stream-target-with-token-authorization-in-wowza-streaming-cloud).

2. You can also use Streaming Engine with the Wowza CDN add-on and set up [Engine token authorization](https://www.wowza.com/docs/how-to-protect-streaming-using-securetoken-in-wowza-streaming-engine). You would configure tokens in Engine and then stream to the Wowza CDN directly from Engine.

3. You can also send a stream from [Wowza Engine to Cloud](https://www.wowza.com/docs/using-wowza-cdn-with-wowza-streaming-engine#WSC) to leverage the CDN if you have a Cloud account also. For this workflow, you would configure the tokens in Engine and leverage Cloud for distribution only, remembering that Streaming Cloud is built on our CDN. Once you have configured your tokens in Engine, you can select [Cloud as a Stream Target in Engine](https://www.wowza.com/docs/stream-to-an-existing-wowza-cdn-target-in-wowza-streaming-cloud) and use that for distribution.

For more information on any of these workflows please click on the links in the text above. Hope this helped.

---

<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: [November 14, 2018, 10:43pm UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/5 "2018-11-14T22:43:16Z")

</div>

Additional WOWZA Engine & CDN information:

There are four ways that Wowza Streaming Engine media server software can leverage the Wowza CDN edge network in the Wowza Streaming Cloud to scale and add flexibility to live-streaming workflows:

[Stream directly to a Wowza CDN endpoint](https://www.wowza.com/docs/using-wowza-cdn-with-wowza-streaming-engine#CDN)  
[Stream to an existing Wowza CDN target in Wowza Streaming Cloud](https://www.wowza.com/docs/using-wowza-cdn-with-wowza-streaming-engine#WSCcdn)  
[Stream to Wowza Streaming Cloud for transcoding and delivery over the Wowza CDN edge network](https://www.wowza.com/docs/using-wowza-cdn-with-wowza-streaming-engine#WSC)  
[Stream to a Wowza Streaming Cloud ultra low latency target for delivery over the Wowza CDN edge network](https://www.wowza.com/docs/using-wowza-cdn-with-wowza-streaming-engine#WSCull)

---

<div class="post-metadata">

### Author: ![Julia\_Budnik](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@Julia\_Budnik](https://community.wowza.com/u/Julia_Budnik)
#### Post date: [January 24, 2019, 5:08pm UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/6 "2019-01-24T17:08:55Z")

</div>

How should i use my Wowza Streaming Engine security token with Wowza CDN? Is there any detailed manual for that? Is there any specific settings in stream targets to ensure usage of security token while using Wowza CDN?

---

<div class="post-metadata">

### Author: ![Julia\_Budnik](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@Julia\_Budnik](https://community.wowza.com/u/Julia_Budnik)
#### Post date: [January 24, 2019, 5:08pm UTC](https://community.wowza.com/t/how-to-generate-secure-token-for-cdn-stream-target/49544/7 "2019-01-24T17:08:58Z")

</div>

I set up security token in Wowza Streaming Engine and stream to Wowza CDN. However Wowza CDN stream is accessible without any security tokens so it, obviously, not working this way out of the box.

Most probably some extra parameters should be added to stream target to provide security token feature on Wowza CDN for the stream.
