How to use per-application publish.password file

By default, RTSP/RTP authentication (digest and basic) is controlled by a single password file located at [install-dir]/conf/publish.password. If you want to have a separate publish.password file per application, you can do this by doing the following:

  1. Edit [install-dir]/conf/Authentication.xml and change the passwordFile property for the basic and digest authentication methods as follows:




  1. Each time you set up an application, create the file [install-dir]/conf/[application]/publish.password file to store the username and passwords for that application.
  2. For RTMP authentication (as in the MediaSecurity AddOn package), add this property to the <Properties> level container at the bottom of [install-dir]/conf/[application]/Application.xml. (Be sure to locate the correct <Properties> container; there are several in the file.)

Originally Published: 10-03-2010.

If you're having problems or want to discuss this article, post in our forum.