Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restream a mp3 stream over https with ssl

I need to restream several existing mp3 streams over https.

I have a current stream with the url : http://cdn.stream.com/radio.mp3 and I would like to have it as : https://cdn.newstream.com/radio.mp3

I have seen several solutions such as :

rebuild my own cast with icecast

nginx proxy

stunnel

cloudfront (could be expensive)

or a paid service : https://www.autopo.st/secure-streams/

But couldn't find an simple tutorial with a cheap solution using AWS.

Is there any way to secure an existing stream in a cheap way using AWS ?

Thanks,

like image 401
Quentin Del Avatar asked Nov 29 '25 19:11

Quentin Del


1 Answers

If you are running Debian or Ubuntu, just install Icecast from the official Xiph.org repositories:

https://wiki.xiph.org/Icecast_Server/Installing_latest_version_(official_Xiph_repositories)

It has TLS support built in.

The certificate needs to be provided as a combined file, with both public and private key in the same file. In case of Letsencrypt - some ACME clients can natively produce that sort of output.

As you don't specify if you control the origin server or need to relay an external server I won't venture into further explanations, please clarify your question if you need specific aspects covered.

like image 186
TBR Avatar answered Dec 01 '25 07:12

TBR