# Per application publish.password files to control RTSP/RTP encoder authentication

**URL:** <https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 15, 2010, 12:44pm UTC](https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90 "2010-02-15T12:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [February 15, 2010, 12:44pm UTC](https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90/1 "2010-02-15T12:44:18Z")

</div>

[https://www.wowza.com/docs/how-to-use-a-per-application-publish-password-file](https://www.wowza.com/docs/how-to-use-a-per-application-publish-password-file)

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [March 7, 2010, 9:30am UTC](https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90/2 "2010-03-07T09:30:18Z")

</div>

For RTMP authentication, you need to add this property the level cotainer at the bottom of conf/[application]/Application.xml:

```auto
<Property>
	<Name>rtmpEncoderAuthenticateFile</Name>
	<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/publish.password</Value>
</Property>

```

The property you are changing is only for RTSP/RTP authentication. I know this is all a bit messy but that is just due to the way it has to be due to the way authentication is handled by the different technologies.

Charlie

---

<div class="post-metadata">

**Author:** ![Alejandro\_Ferrari](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Alejandro\_Ferrari](https://community.wowza.com/u/Alejandro_Ferrari)\
**Post date:** [March 7, 2010, 2:24pm UTC](https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90/3 "2010-03-07T14:24:56Z")

</div>

Hi Charlie,

I’m trying this but for me don’t work.

On the logs say:

```auto
INFO server comment - ModuleRTMPAuthenticate.onAppStart: Authorization password file: /usr/local/WowzaMediaServer/conf/publish.password

```

But my Autentication.xml say:

```auto
<Method>
                                <Name>digest</Name>
                                <Description>Digest Authentication</Description>
                                <Class>com.wowza.wms.authentication.AuthenticateDigest</Class>
                                <Properties>
                                        <Property>
                                                <Name>passwordFile</Name>
<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/publish.password</Value>
                                        </Property>
                                        <Property>
                                                <Name>realm</Name>
                                                <Value>Streaming Server</Value>
                                        </Property>
                                </Properties>
                        </Method>

```

Do you have some advice for fix that?

BTW, I’m using the last AMI on EC2

Thanks in advance!

Alejandro

---

<div class="post-metadata">

**Author:** ![Alejandro\_Ferrari](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Alejandro\_Ferrari](https://community.wowza.com/u/Alejandro_Ferrari)\
**Post date:** [March 7, 2010, 2:50pm UTC](https://community.wowza.com/t/per-application-publish-password-files-to-control-rtsp-rtp-encoder-authentication/90/4 "2010-03-07T14:50:24Z")

</div>

Charlie,

With your new instruction, this work really well.

BTW, this work too with “ApplicationInstance” level.

Only need create into conf/{Application}/{ApplicationInstance}/publish.password

Example: /usr/local/WowzaMediaServer/conf/live/1001/publish.password

My properties:

```auto
                        <Property>
                                <Name>rtmpEncoderAuthenticateFile</Name>
                                <Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/${com.wowza.wms.context.ApplicationInstance}/publish.password</Value>
                        </Property>

```

and this way you can have multiple client in the same Application, but anyone can’t use the ApplicationInstance assigned to other clients.

I hope this Tip be useful.

Alejandro
