GICT knowledge base
Using Stunnel to add ssl to shoutcast (or any service that does not have ssl)
Published
Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs’ code.
First stunnel must be installed. Many OS’s have stunnel preinstalled: so try running stunnel first. If not install with your OS’s package management tool such as
centos: yum install stunnel
ubuntu: apt-get install stunnel
Once stunnel is installed you can begin. First a config file is needed. In this example shoutcast is installed already and running on port 8000. It is listening on localhost only. Create the file
/etc/stunnel/stunnel.conf
client=no
[shoutcast]
accept=8002
connect=localhost:8000
cert = /etc/stunnel/stunnel.pem
Now create the PEM file /etc/stunnel/stunnel.pem
The format is
rsa key first
certificate second
cabundle/intermediate third
Set permissions to 600
chmod 600 /etc/stunnel/stunnel.pem
Now stunnel can be started with the command /usr/bin/stunnel and we can connect to port 8002 over ssl.
Related guides
How to Manage Let’s Encrypt SSL Certificates with Certbot Commands
Learn to manage Let's Encrypt SSL certificates using Certbot commands for installation, renewal, and configuration to keep your site secure.
SSLSSL/TLS Certificates: Coverage, Hosting Setup and HTTPS Checks
Choose SSL/TLS certificate coverage and check hosting setup, private keys, HTTPS redirects and renewal without unsupported plan-wide promises.
SSLHow to Fix the NET::ERR_CERT_AUTHORITY_INVALID Error
The NET::ERR_CERT_AUTHORITY_INVALID error can be caused at the client side as well as the server side. Learn how to solve this error using our in-depth guide.
SSLUse Really Simple Security for a Controlled WordPress HTTPS Change
Review Really Simple Security HTTPS tools, existing certificate ownership and redirect methods, then test WordPress without blanket security promises.
