karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Icecast-2.4.0-kh13 SSL not work #277

Closed aitrone closed 4 years ago

aitrone commented 4 years ago

Compiled and then run icecast. It starts in the logs of 0 errors, but when I try to open https://192.169.1.10:8443 an empty page, it works only http://192.169.1.10

Ubuntu server 18.04 Icecast-2.4.0-kh13

how to reproduce

sudo apt-get install  build-essential libxml2 libxslt1-dev libvorbis-dev libssl-dev libcurl4-openssl-dev                                
wget https://github.com/karlheyes/icecast-kh/archive/icecast-2.4.0-kh13.tar.gz                       
tar xzf icecast-2.4.0-kh13.tar.gz                             
cd icecast-2.4.0-kh13                         
./configure  --with-openssl          
make
sudo make install

config

    <listen-socket>
        <port>8443</port>
        <ssl>1</ssl>
    </listen-socket>

    <paths>
        <basedir>/usr/local/share/icecast</basedir>
        <logdir>/var/log/icecast</logdir>
        <webroot>/usr/local/share/icecast/web</webroot>
        <adminroot>/usr/local/share/icecast/admin</adminroot>
       <ssl-private-key>/usr/local/share/icecast/privkey.pem</ssl-private-key>
       <ssl_certificate>/usr/local/share/icecast/fullchain.pem</ssl_certificate>
        <alias source="/" dest="/index.html"/>
    </paths>
aitrone commented 4 years ago

And so if someone has the same problem, then here is the solution:

sudo apt install -y build-essential libxml2-dev libxslt1-dev libcurl4-openssl-dev libvorbis-dev libtheora-dev libssl-dev openssl

wget https://github.com/karlheyes/icecast-kh/archive/icecast-2.4.0-kh13.tar.gz                       
tar xzf icecast-2.4.0-kh13.tar.gz                             
cd icecast-kh-icecast-2.4.0-kh13                        
./configure --with-curl-config=/usr/bin/curl-config --with-openssl   
make
sudo make install