Thanks for reading my post for “Install Centova Cast”
I was working on Radio Streaming Project for Alexa Skills. So I need SSL / HTTPS enabled for Centova Cast http://radio.domain.com:2199/
http://radio.domain.com:2199/ => https://radio.domain.com:2199/
Note: Please replace domain name “radio.domain.com” with your own domain.
Here are some helpful links from centova.com website
http://www.centova.com/en/faq/cast3/information/lets_encrypt
http://www.centova.com/doc/cast/installation_manual/08_Configuring_SSL
http://www.centova.com/doc/cast/installation_manual/04_full_installation
First I installed NGINX on port 80 with Letsencrypt SSL
# yum update
# yum install epel-release -y
# yum install nginx -y
# systemctl start nginx
# systemctl enable nginx
Then Lets Encrypt for NGINX on CentOS7
https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
# yum -y install yum-utils
# yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
# yum install certbot-nginx
# certbot -i nginx -d radio.domain.com –server https://acme-v02.api.letsencrypt.org/directory
# certbot renew –dry-run
Crontab to renew SSL on CentOS 7 Nginx
0 0,12 * * * python -c ‘import random; import time; time.sleep(random.random() * 3600)’ && certbot renew
Find Lets Encrypt SSL Key files here
# ls /etc/letsencrypt/live/radio.domain.com
cert.pem chain.pem fullchain.pem privkey.pem README
But as I run below command it give error
Problem
# /usr/local/centovacast/sbin/setssl letsencrypt radio.domain.com
Installing custom SSL certificate …
cp: cannot stat ‘letsencrypt’: No such file or directory
cp: cannot stat ‘radio.domain.com’: No such file or directoryDone. Restart Centova Cast to apply these changes.
Solution
Centova Cast – Copyright 2010-2014, Centova Technologies Inc.
SSL configuration scriptThis script will configure the SSL certificate used by your Centova Cast
web interface.To use your own SSL certificate:
setssl /path/to/private.key /path/to/certificate.pem
– /path/to/private.key specifies the full pathname to the private key
used to generate your SSL certificate
– /path/to/certificate.pem specifies the full pathname to your SSL
certificate itself
setssl /path/to/private.key /path/to/certificate.pem
# /usr/local/centovacast/sbin/setssl /etc/letsencrypt/live/radio.domain.com/privkey.pem /etc/letsencrypt/live/radio.domain.com/fullchain.pem
Installing custom SSL certificate …
Done. Restart Centova Cast to apply these changes.
# service centovacast restart
Now Centova Cast on SSL
https://radio.domain.com:2199/login/index.php
Forcing Users to Use SSL
# vi /usr/local/centovacast/etc/centovacast.conf
Edit REQUIRE_SSL=true
Read Other Blog Post on SSL
Free SSL Certbot
Install SSL Letsencrypt on Wowza Server HLS Stream