Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Senior Member meep's Avatar
    Join Date
    Aug 2007
    Location
    Ireland
    Posts
    208

    What determines availability of Slim::Networking::Async::Socket::HTTPS ?

    Code:
     eval { 
       require Slim::Networking::Async::Socket::HTTPS;
      };
      if ($@) {
    
       #SSL is not available
    
      }else{
      
       #SSL is available
    
      }
    I've read a note somewhere indicating that support for requests over HTTPS may or may not be available depending on the LMS install.

    I've tried the above code in 7.9.x and found that it's available on a windows system but not available on an Ubuntu system,

    What's the determining factor dictating SSL availability for async requests? (assume it's availability of IO::Socket::SSL?). What's the core reason why this may or may not be included in a particular LMS version/platform? Is there anything an end-user can do to enable it?

    Many thanks

    Peter


    ALEXA LMS SKILL: http://www.hab-tunes.com | Twitter: #habtunes
    Personal HA BLOG: http://mediaserver8.blogspot.com

    Squeezebox | Squeezebox Radio x 2 | Squeezebox Duet

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,239
    Not sure if it is of help but for BBC plugin I have a requirement for HTTP 1.1 persistent TCP connection -which is not implemented in LMS async HTTP so I use AnyEvent::HTTP included in the lib dir of a plugin. AnyEvent works with LMS scheduler loop so it is proper async I/O . AFAICT AnyEvent::HTTP also implements https. AnyEvent::HTTP works with LMS 7.8

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,760

    What determines availability of

    > What's the determining factor dictating SSL availability for async
    > requests? (assume it's availability of IO::Socket::SSL?). What's the
    > core reason why this may or may not be included in a particular LMS
    > version/platform? Is there anything an end-user can do to enable it?


    IO::Socket::SSL can't be included for every platform, as it depends on
    OpenSSL. And it must be compiled against the exact same version as is
    installed. Therefore it's almost only possible to have it installed
    using the system's package manager.

    --

    Michael

  4. #4
    Senior Member meep's Avatar
    Join Date
    Aug 2007
    Location
    Ireland
    Posts
    208
    OK, thanks both

    @Michael - do you have any insights into a rough % of LMS installs it might be enabled on (I've added some tracking to my DB so will be building this data over time from testers in any case). It would be useful to give end users some indication of platforms which would have enhanced security.

    @bpa - thanks for the pointers. I actually had a development version that used AnyEvent but had issues around SSLeay requirements, if I recall correctly (probably the same issue that Michael outlines, if I think back on it).


    ALEXA LMS SKILL: http://www.hab-tunes.com | Twitter: #habtunes
    Personal HA BLOG: http://mediaserver8.blogspot.com

    Squeezebox | Squeezebox Radio x 2 | Squeezebox Duet

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,760

    What determines availability of

    > @Michael - do you have any insights into a rough % of LMS installs it
    > might be enabled on (I've added some tracking to my DB so will be
    > building this data over time from testers in any case). It would be
    > useful to give end users some indication of platforms which would have
    > enhanced security.


    No numbers, no. Only some guess work.

    Nowadays most LMS installations run on Linux systems of some kind.
    "Unfortunately" a large chunk thereof are NAS systems which don't always
    come with all libraries required. Windows and Mac should be fine.
    Overall I'd guess that the vast majority of users can handle SSL.

    --

    Michael

  6. #6
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Vństerňs Sweden
    Posts
    16,127
    I recently installed on a linux mint 18 , all off it was not installed per default ( especially not the perl modules ) but was easilly aviable trough the packet manager . A piont and click exercise , (not like my old obscure server).

    Could not lms in case it is avaible trough a packet manager have this as dependencies thus installing it on many linux systems ?
    even the plugin needs could be considered ? you and the third party devs could agreee on some common ssl needs ?
    --------------------------------------------------------------------
    Main hifi: Touch + CIA PS +MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Kitchen: Touch + powered Fostex PM0.4
    Misc use: Radio (with battery)
    iPad1 with iPengHD & SqueezePad
    (spares Touch, SB3, reciever ,controller )
    server HP proliant micro server N36L with ClearOS Linux

    http://people.xiph.org/~xiphmont/demo/neil-young.html

  7. #7
    Junior Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    28
    Quote Originally Posted by mherger View Post
    > @Michael - do you have any insights into a rough % of LMS installs it
    > might be enabled on (I've added some tracking to my DB so will be
    > building this data over time from testers in any case). It would be
    > useful to give end users some indication of platforms which would have
    > enhanced security.


    No numbers, no. Only some guess work.

    Nowadays most LMS installations run on Linux systems of some kind.
    "Unfortunately" a large chunk thereof are NAS systems which don't always
    come with all libraries required. Windows and Mac should be fine.
    Overall I'd guess that the vast majority of users can handle SSL.

    --

    Michael
    Any chance of a stand alone package for the Raspberry Pi? It would be really nice to have https on the Pi if that were possible.
    Server : LMS 7.9 on RPi3 running Jessie
    Players : RPi 2B, HiFiBerry DAC+ (Whole-House, 300Watts RMS 8 Ohm), + RPi 2B & HiFiBerry DAC+ for SubBass (500Watts)

    ............. 3 x RPi piCorePlayer. One with Behringer UCA222 USB DAC
    ............. 2 x Logitech Boom
    ............. 2 x Logitech Radio
    Control : Windows 10, Android Squeeze Ctrl, Amazon Dot
    Main HiFi: 1959 Rogers HG88MkIII valve/tube amplifier, Transcriptors Hydraulic Reference Turntable

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,760

    What determines availability of

    > Any chance of a stand alone package for the Raspberry Pi? It would be
    > really nice to have https on the Pi if that were possible.


    sudo apt-get install libio-socket-ssl-perl

    That should do.

    --

    Michael

  9. #9
    Junior Member
    Join Date
    Jun 2014
    Location
    Charlotte, NC
    Posts
    28
    Quote Originally Posted by mherger View Post
    > Any chance of a stand alone package for the Raspberry Pi? It would be
    > really nice to have https on the Pi if that were possible.


    sudo apt-get install libio-socket-ssl-perl

    That should do.

    --

    Michael
    Thank you Michael.

    Edit: I installed it and it worked perfectly first time. A ta sante, Michel.
    Last edited by rederikus; 2017-01-14 at 10:53. Reason: Update, it worked.
    Server : LMS 7.9 on RPi3 running Jessie
    Players : RPi 2B, HiFiBerry DAC+ (Whole-House, 300Watts RMS 8 Ohm), + RPi 2B & HiFiBerry DAC+ for SubBass (500Watts)

    ............. 3 x RPi piCorePlayer. One with Behringer UCA222 USB DAC
    ............. 2 x Logitech Boom
    ............. 2 x Logitech Radio
    Control : Windows 10, Android Squeeze Ctrl, Amazon Dot
    Main HiFi: 1959 Rogers HG88MkIII valve/tube amplifier, Transcriptors Hydraulic Reference Turntable

  10. #10
    Senior Member meep's Avatar
    Join Date
    Aug 2007
    Location
    Ireland
    Posts
    208
    a tester of the Alexa plugin also reported success as follows, though I haven't yet tested this....

    I'm using Ubuntu here and to get the https working I ran the following command in Ubuntu:

    Code:
    sudo apt-get install libnet-ssleay-perl libio-socket-ssl-perl
    Then I rebooted LMS and now my Alexa traffic is being sent via https.


    ALEXA LMS SKILL: http://www.hab-tunes.com | Twitter: #habtunes
    Personal HA BLOG: http://mediaserver8.blogspot.com

    Squeezebox | Squeezebox Radio x 2 | Squeezebox Duet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •