RTMPS sslKey / sslCert File Paths
I have been trying to setup RTMPS on EMS v1.7 and have been having problems with getting the sslKey / sslCert parameters setup correctly. In config.lua I have setup the sslKey/sslCert paths using absolute path, but EMS is unable to start (running as service) when RTMPS is enabled. If I run EMS from the command line and ensure I’m running from the same directory where the cert / key are located I can get this to work.
This does not work:
sslKey=”/etc/evostream/myserver.key”,
sslCert=”/etc/evostream/myserver.crt”,
This works if running CLI and launch from the same location as key /cert:
sslKey=”myserver.key”,
sslCert=”myserver.crt”,
Is this a known issue? Does absolute path need to be specified in different way?
5 Answers
Hi,
May I request for the config.lua file that you used to do the test?
May I also request for the Evostream Log files under the folder /var/log/evostreamms?
To help us sift through the log files, please do the following steps first:
- Make sure EMS is not running.
- Delete the contents of /var/log/evostreamms.
- Attempt to start EMS as a service using you RTMPS configured config.lua file.
- Send us the log files that were generated in /var/log/evostreamms when you attempted to start EMS as a service.
When I first encountered this problem I followed these steps and found that EMS would simply fail to start and would not produce any log files.
Here is the config.lua I am using:
config
Hi,
I checked the paths that you set in the config.lua file:
sslKey=”/etc/evostream/watchtower-security.key”,
sslCert=”/etc/evostream/watchtower-security.crt”, If you placed the watchtower-security.key/crt files under the evostream installation folder, then you may have an incorrect sslKey/sslCert path in your RTMPS. Please change it to sslKey=”/etc/evostreamms/watchtower-security.key”,
sslCert=”/etc/evostreamms/watchtower-security.crt”, Also, if you check the webrtc section of your config.lua, your key/cert path is correctly set to “/etc/evostreamms/watchtower….”.
sslCert=”/etc/evostream/watchtower-security.crt”, If you placed the watchtower-security.key/crt files under the evostream installation folder, then you may have an incorrect sslKey/sslCert path in your RTMPS. Please change it to sslKey=”/etc/evostreamms/watchtower-security.key”,
sslCert=”/etc/evostreamms/watchtower-security.crt”, Also, if you check the webrtc section of your config.lua, your key/cert path is correctly set to “/etc/evostreamms/watchtower….”.
Eric…thanks for your help with this issue. It was right in front of me and I just couldn’t see it.
All good now.
Bob