Certificats SSL - Icecast2, certificat SSL, https et port 443
... / Icecast2, certificat SSL,...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Icecast2, certificat SSL, https et port 443

Von
HubertB11
Erstellungsdatum 2021-05-19 12:10:22 (edited on 2024-09-04 12:49:41) in Certificats SSL

Bonjour à tous.
Il s'agit de diffuser le son de notre webradio. Pour plus de compatibilité nous nous sommes orientés également vers le https.

Donc :
Je pars de : http://lesfloralies.ovh:8000/floralies.ogg
et je voudrais : https://lesfloralies.ovh:443/floralies.ogg mais -> Not Found

J'ai bien installé mon certificat SSL sur le VPS en utilisant mon domaine lesfloralies.ovh
Cela fonctionne ouf !

Par contre je ne parviens pas :
A envoyer mon stream vers le serveur en SSL.
Un test de stream avec Rocket BroadCaster m'indique : Server Listening -> False (Croix)
Je ne sais pas si c'est un 'bridage' au niveau du VPS sur le port 443 ?
Dois-je saisir/activer quelquechose en plus ?
Je peux joindre mon fichier de conf d'icecast si nécessaire.
Merci.


9 Antworten ( Latest reply on 2021-05-19 17:37:36 Von
HubertB11
)

Bonjour,

déjà est-ce que icecast est capable de faire du HTTPS ?

Si la réponse est non il va falloir faire du reverse proxy pour faire :
visiteur =https=> reverse proxy =http=> icecast

Cordialement, janus57

Bonjour,

sauf que vous avez un apache d'installé donc cela ne fonctionnera jamais.

Donc il faut choisir ce que vous voulez faire et n'utiliser que une des deux méthodes.

Cordialement, janus57

Pouvez vous expliquer un peu plus janus ?
Pourquoi cela ne fonctionnerait pas ? Faut il uniquement changer de port d'écoute ?
Pour info, la webradio est disponible ici : http://www.lesfloralies.info

Bonjour,

simple vous essayer de faire écouter 2 programmes différents (apache+icecast) sur le même port (443 == https).

Pour faire une analogie c'est comme si vous essayer de conduire 2 voiture différentes en même temps et sur la même route, c'est pas possible.

Donc là vous n'avez pas le choix de regarder le manuel d'apache pour regarder comment faire du reverse proxy avec.

Cordialement, janus57

Je peux certainement changer le port d'icecast de 443 en 8443 comme dans le tutorial. Merci je vais tester.

```text

ServerName lesfloralies.ovh
DocumentRoot /var/www/html


SSLEngine on
SSLCertificateFile /etc/ssl/lesfloralies_ovh.crt
SSLCertificateKeyFile /etc/ssl/lesfloralies.key
SSLCertificateChainFile /etc/ssl/lesfloralies_ovh.ca-bundle

ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
ProxyPreserveHost On





# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerName lesfloralies.ovh
Redirect permanent / https://www.lesfloralies.ovh/
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html


# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf


# vim: syntax=apache ts=4 sw=4 sts=4 sr noet ```

Le reverse proxy est donc la solution. Merci Janus.