Enable SSL with Just 1 Command – Easy and Fast
This blog post will help you to enable SSL for Ant Media Server . Enabling SSL is not mandatory for all cases. However, it’s mandatory when requesting access to mic and camera. It’s not mandatory for playing streams HTTPS and WSS (WebSocket Secure) is mandatory for Google Chrome to run WebRTC and WebSocket applications. In addition, developers want to serve their content with a secure connection as well. The script in this post install Let’s Encrypt SSL certificate. Enable SSL in Linux(Ubuntu) Go to the folder where Ant-Media-Server is installed. Default directory is /usr/local/antmedia 1 cd /usr/local/antmedia If there is a service that uses 80 port, you need to disable it. If your system has Apache Web Server, you need to disable it first such a command below 1 sudo service apache2 stop There should be an enable_ssl.sh file in the installation directory. Call the enable_ssl.sh with your domain name 1 sudo ./enable_ssl.sh -d example.com enable_ssl.sh ...