Introduction
Ant Media is live streaming server With Ultra-Low Latency WebRTC, Adaptive Bitrate, Auto-Scaling Capability, and support for RTMP, MP4, HLS, and RTSP, Ant Media Server Enterprise Edition is a real-time streaming platform.
WSS and HTTPS are mandatory for the browser to connect WebRTC and WebSocket applications. Likewise, designers need to serve their substance with secure association too. The content right now Let’s Encrypt SSL declaration.
In this post, We will install and configure let letsencrypt free ssl on Ant Media using Ubuntu 22.04,
Make sure your public domain is pointing to your public of Ant Media, Use the following command to verify.
Step 1: Verify Domain Pointing
You need to validate the public domain pointing with your Ant media’s Public IP address, To do that, You need to use the nslookup
command in order check domain name to ip address mapping.
nslookup www.example.com
if you get your public ip so then your domain pointing is working fine.
Step 2: Obtain Let’s encrypt SSL
Installation and Configuration of SSL certificate for Ant Media Server, Go to the Ant Media base directory by following the command.
cd /usr/local/antmedia
Note: Make sure port 80 should be disabled, In case any service is using port 80 then you need to stop that service, It may be Apahe2 and Nginx web server.
Now you need to use the ls command to find the enable_ssl.sh, Follow the given command for to configure and activate the letsencrypt free ssl.
sudo ./enable_ssl.sh -d www.example.com
You should get successful message for ssl activation, After that You need to visit https://www.example.com:5443 and verify the ssl certificate.
Step 3: Renewal of the Let’s Encrypt free SSL
After 3 month ssl will be expired, You need to use the given commands for renew and activate the ssl.
sudo ./enable_ssl.sh -d www.example.com -r
Conclusion
We have successfully enabled SSL on Ant media Server on ubuntu , Kindly report in case you are facing difficulties with following details.
- OS name
- OS version
- Package name
- Logs – Error / Warning / failed