Hello,
I had problems with the MaxLinux2000 solution but I found and easier one: https://mediarealm.com.au/articles/icecast-https-ssl-setup-lets-encrypt/
Installing Icecast with HTTPS Support
On your server, add the Xiph package repository to your apt source list:
sudo sh -c "echo deb http://download.opensuse.org/repositories/multimedia:/xiph/xUbuntu_18.10/ ./ >>/etc/apt/sources.list.d/icecast.list"
Download the signing key and add it to apt:
wget -qO - http://icecast.org/multimedia-obs.key | sudo apt-key add -
Note: at the time of writing, the key supplied in the above command has expired. You can instead use this command to download the the newer one from OpenSUSE directly:
wget -qO - https://build.opensuse.org/projects/multimedia:libs/public_key | sudo apt-key add -
Update the packages cache:
apt-get update
Now, you can install or update Icecast:
apt-get install icecast2
You can keep your old configuration file and make the next steps on it:
If you have the ssl files ready:
cat /etc/letsencrypt/live/<YOUR ADDRESS>/fullchain.pem /etc/letsencrypt/live/<YOUR ADDRESS>/privkey.pem > /usr/share/icecast2/icecast2.pem
If not: https://tecadmin.net/install-lets-encrypt-create-ssl-ubuntu/
Configure Icecast for SSL
We are now ready to finish this off and get Icecast running with our new certificate.
Edit Icecast.xml in a text editor:
nano /etc/icecast2/icecast.xml
Add this line to the <paths></paths> section:
<ssl-certificate>/usr/share/icecast2/icecast2.pem</ssl-certificate>
Now, add this section to the document (in the root XML node):
<listen-socket> <port>443</port> <ssl>1</ssl> </listen-socket>
Quit the text editor, and now restart Icecast:
sudo service icecast2 restart
Regards.