SSL doesn't work correctly yet, dies somewhere in Crypt::SSLeay
If you don't do this, the bootup process will take a long time but finally
succeed.
* Install required perl packages:
If you don't do this, the bootup process will take a long time but finally
succeed.
* Install required perl packages:
- apt-get install libwww-perl libxml-simple-perl
+ apt-get install libwww-perl libxml-simple-perl libcrypt-ssleay-perl
Pinout:
+---------------+---------------+--------------------------------------+---+-
Pinout:
+---------------+---------------+--------------------------------------+---+-
$poweronms = ${$Config{$hostalias}}{"poweronms"} if (defined(${$Config{$hostalias}}{"poweronms"}));
$poweroffms = ${$Config{$hostalias}}{"poweroffms"} if (defined(${$Config{$hostalias}}{"poweroffms"}));
$poweronms = ${$Config{$hostalias}}{"poweronms"} if (defined(${$Config{$hostalias}}{"poweronms"}));
$poweroffms = ${$Config{$hostalias}}{"poweroffms"} if (defined(${$Config{$hostalias}}{"poweroffms"}));
-$url = "http://${host}";
+my $ssl = ${$Config{$hostalias}}{"ssl"};
+my $port = ${$Config{$hostalias}}{"port"};
+
+if (defined($ssl) && (lc($ssl) eq 'yes')) {
+ $ENV{HTTPS_DEBUG} = 1;
+ $ENV{HTTPS_VERSION} = 3;
+ $port = 443 if (!defined($port));
+ $url = "https://${host}:${port}";
+} else {
+ $port = 80 if (!defined($port));
+ $url = "http://${host}:${port}";
+}
if ($gui) {
spawn_gui($url);
if ($gui) {
spawn_gui($url);
host=192.168.50.6
user=admin
pass=admin
host=192.168.50.6
user=admin
pass=admin
;poweronms=200
;poweroffms=5000
;poweronms=200
;poweroffms=5000