# Encrypted streaming between two wowza servers

**URL:** <https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512>\
**Category:** Hire a Consultant\
**Created:** [January 23, 2020, 10:45pm UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512 "2020-01-23T22:45:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Idan\_Sh1](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Idan\_Sh1](https://community.wowza.com/u/Idan_Sh1)\
**Post date:** [January 23, 2020, 10:45pm UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512/1 "2020-01-23T22:45:21Z")

</div>

Hello, I have two wowza servers and I want to live stream some encoded video between them and I want the stream to be encrypted.

I read about the stream lock option and rtmps but I’m not sure if Is it possible to live stream rtmps between the two wowza servers?

What should I configure in the first source server and the destination server?

Thanks in advance,

Idan.

---

<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:** [January 24, 2020, 1:24am UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512/2 "2020-01-24T01:24:47Z")

</div>

Hello @Idan Sh

You’ll need to setup a [StreamLock](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service) certificate and then a Wowza Streaming Engine stream target as such:

[https://www.wowza.com/docs/how-to-stream-to-another-wowza-streaming-engine-instance#createstreamtarget](https://www.wowza.com/docs/how-to-stream-to-another-wowza-streaming-engine-instance#createstreamtarget)

Regards,

JasonT

---

<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:** [January 24, 2020, 2:49am UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512/3 "2020-01-24T02:49:17Z")

</div>

Yes, as Jason Tuchler says, it is possible to do this [@Idan Sh](http://community.wowza.com/community/questions/54532/encrypted-streaming-between-two-wowza-servers.html#). You can set up Stream Targets in the Wowza Streaming Engine Manager or, if you prefer, you can manually edit and manage an XML map file to send live source streams to these destinations.

A. Send the stream from the Wowza to second Wowza server by using the Stream Targets feature in Manager:

[https://www.wowza.com/docs/How-to-stream-to-another-Wowza-Streaming-Engine-instance](https://www.wowza.com/docs/How-to-stream-to-another-Wowza-Streaming-Engine-instance)

**Make sure you do this step for RTMPS once you have your SSL:**

_To enable the RTMP stream target to send RTMPS content to the destination. Open the [install-dir]/conf/[applicationName]/PushPublishMap.txt file in a text editor, find the entry for the RTMP stream target in the map file, and add **“sendSSL”:“true”.** _

B. You can also do this through PushPublish map

Also, below you can find a link providing more information about the RTMP push publish map profile parameters you can set:

[https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing#rtmpprofiles](https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing#rtmpprofiles)

\*\*same rule applies in this method for adding the "sendSSL:“true” to your map entry.

---

<div class="post-metadata">

**Author:** ![Idan\_Sh1](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Idan\_Sh1](https://community.wowza.com/u/Idan_Sh1)\
**Post date:** [January 27, 2020, 2:42pm UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512/4 "2020-01-27T14:42:36Z")

</div>

First of all, let me say thank you for your help!

I successfully managed to stream rtmps between the two wowza servers.

But I have some more questions…

1. For the encrypted stream, did I just needed to activate the streamlock in the destination server or should I do it in both of them? (For my tests I activated it on both)

2. I really don’t understand how the sending server know the secret key of the receiving server and decrypt the encryption? (The key I choose when I activated the streamlock option as shown in : [https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service](https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service)) how the streamlock working in the backstage?

3. Is there a way to check for sure if the stream is encrypted? (Wireshark or something else)

Thank you again.

Idan

---

<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:** [January 27, 2020, 4:35pm UTC](https://community.wowza.com/t/encrypted-streaming-between-two-wowza-servers/54512/5 "2020-01-27T16:35:18Z")

</div>

You’re very welcome @Idan Sh. To ensure this will be set up correctly for you, our engineers would like to work through this with you in a support ticket.You can support one here:

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)
