ENPTES Free trial

Stream keys and RTMPS: how to protect them

Anyone who has the key can go live on your channel. Two habits cover most of the risk: treat the key as a password and send over rtmps://.

Short answer

Treat the stream key as a password: whoever has it can broadcast on your channel without knowing your login. Never show the key on screen, send it only to the person who operates the stream, and generate a new one on the platform when it may have leaked. Use the server address that starts with rtmps://, so the key and the video travel inside an encrypted connection.

The main screen of NWK Live Production with Preview, Program and the status bar at the bottom
The main screen of NWK Live Production with Preview, Program and the status bar at the bottom
On this page
  1. What the key is and what it allows
  2. How a key leaks
  3. What RTMPS protects
  4. Good practice
  5. If the key leaked
  6. Keys in NWK Live Production
  7. Related questions

What the key is and what it allows

A destination on a platform has two parts: the server address, which says where the stream goes, and the stream key, which says to which channel or event it belongs. The platform does not ask for a login when the stream arrives. The key is the only proof that the stream is yours.

For that reason, a person with your key can put any picture on your channel, at any time, from any place. The key does not give access to the account, the videos or the settings; the damage is what goes on air under your name.

How a key leaks

  • On screen. The destination window open during a screen share, a tutorial recorded with the key visible, a photo of the monitor.
  • In messages. A key pasted in a group chat or an email stays there for everyone who is or will be in the group.
  • With people who left. A volunteer or freelancer who operated one event still knows the key.
  • On the network. With plain rtmp://, the key travels unencrypted, and someone on the same network can read it. This matters on the Wi-Fi of a hotel, a venue or an event.

What RTMPS protects

YouTube describes RTMPS as a secure extension of RTMP: the same protocol over a TLS/SSL connection, with encryption. The key and the video go inside that connection, so the network between your computer and the platform sees only encrypted data. RTMPS does not protect a key that was shown on screen or sent to the wrong person.

On YouTube, the page about RTMPS says that the stream settings still show the ordinary RTMP address by default, and that the lock icon in the stream URL field shows the RTMPS address. If the encoder reports a certificate or timeout error, the same page suggests checking the address and adding port 443 to it. YouTube's encoder settings page recommends RTMPS. On other platforms, use the address that starts with rtmps:// whenever the platform offers one. The protocol itself is explained in RTMP: what it is.

Good practice

  • Close the destination window before sharing the screen or recording a tutorial.
  • If someone else operates, prefer giving that person access on the platform, where it can be removed, to sending the key by message.
  • Generate a new key after an event operated by people outside the team, and whenever someone leaves.
  • If the platform lets you create more than one key, use a separate key for each event or each operator.

If the key leaked

SituationWhat to do
The key appeared on screen or in a messageIn the platform's panel, generate a new key. The old one stops working. Paste the new key into the encoder.
Something you did not send is on your channelEnd the stream on the platform, generate a new key and change the account password.

After changing the key, a stream that keeps reconnecting may be using the old key; the checks are in The stream keeps disconnecting.

Keys in NWK Live Production

In NWK Live Production the key is typed in the Key field of the destination, and the eye inside the field shows or hides it. The keys are kept in the system's secure vault and in an encrypted copy that only opens on that computer. See add a destination.

To change a key, open the destination with Edit and type the new one; if the field is left blank, NWK keeps the saved key. The Custom (RTMP/RTMPS) template accepts a server address that starts with rtmps://. The report sent to support includes no passwords and no stream keys. See edit a destination.

Related questions

Can someone use my stream key without my password?

Yes. The platform accepts the stream from whoever presents the key and does not ask for a login. That is why a leaked key has to be replaced, even when the account password is safe.

Is RTMPS slower than RTMP?

Not in a way you would notice. Encryption adds a small amount of work for the computer and no meaningful amount of data. The bitrate, the resolution and the upload you need stay the same.

Does changing the stream key stop the stream that is on air?

It depends on the platform. Plan the change for a moment when you are off air, paste the new key into the encoder and run a short private test before the next event.

In the NWK help center

Sources and references

Written and reviewed by the NWK Live Production team (Setor 360 Tecnologia e Eventos Ltda). Published .

NWK keeps stream keys in the system's secure vault and streams over RTMPS.

Try NWK free for 7 days