erland wrote:
> If this is the same problem as we have seen on one Synology device in
> ickStream I'm starting to think that it's caused by the https peer
> verification not working in Perl on some Synology devices. I think it
> works with SSODS but not with the standard Synology distribution of LMS.
> It also seems to work on some devices but not on others, so it's
> probably related to which version of Synology hardware/software that's
> used.
>
> In a test script it seems to help to call:
> >
Code:
--------------------
> >
> IO::Socket::SSL::set_client_defaults('SSL_verify_mode' => 0x0);
>
--------------------
> >
> But unfortunately this doesn't work when used from inside LMS because
> LMS doesn't seem to be able to load IO::Socket::SSL even if it's
> installed on the device part of @INC and definitely works in the test
> script. The disadvantage of using set_client_defaults is also that it
> disables peer verification in whole LMS not just for SoundCloud.
>
Just for information, we ended up doing something like this in ickStream
and it seems to make https work also on Synology NAS boxes based on DSM
5.0.
Code:
--------------------
eval "use IO::Socket::SSL";
if(!$@ && IO::Socket::SSL->can("set_client_defaults")) {
# Only disable SSL peer verification if the user have explicitly disabled it
through the plugin settings page
if($prefs->get('disablePeerVerification')) {
IO::Socket::SSL::set_client_defaults(
'SSL_verify_mode' => 0x0
);
}
}
--------------------
https works properly on Synology NAS boxes using previous version of the
Synology DSM software but with 5.0 they seem to have broken https when
used from perl, it works perfectly using curl.
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets (both free and commercial)'
(http://wiki.slimdevices.com/index.php/User:Erland).
If you like to encourage future presence on this forum and/or third
party plugin/applet development, 'consider purchasing some plugins'
(http://license.isaksson.info))
*Interested in the future of music streaming ? 'ickStream - A world of
music at your fingertips'
(http://forums.slimdevices.com/showthread.php?98467-Pre-Announcement-ickStream&p=743516)*.
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=92723
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins