diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-04-02 14:39:37 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-04-02 14:39:37 -0700 |
commit | 73c7c8077eb39e017e7a5a4468942a9a818af4fb (patch) | |
tree | 730582c7d9b54de3777f04166559c14e0b5dcee1 /FS/FS/part_export/ispconfig3.pm | |
parent | 4cfac242bc51b09575ea94002ba6293850b20cef (diff) |
really don't verify certificates if asked, deb 8 style
Diffstat (limited to 'FS/FS/part_export/ispconfig3.pm')
-rw-r--r-- | FS/FS/part_export/ispconfig3.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/FS/FS/part_export/ispconfig3.pm b/FS/FS/part_export/ispconfig3.pm index 3345b3f06..9d22d1995 100644 --- a/FS/FS/part_export/ispconfig3.pm +++ b/FS/FS/part_export/ispconfig3.pm @@ -6,6 +6,7 @@ use base qw( FS::part_export ); use Data::Dumper; use SOAP::Lite; +use IO::Socket::SSL; =pod @@ -299,7 +300,12 @@ sub api_login { } $self->{'__ispconfig_session'} = undef; $self->{'__ispconfig_client'} = - SOAP::Lite->proxy($self->option('soap_location'), ssl_opts => [ verify_hostname => 0 ] ) + SOAP::Lite->proxy( $self->option('soap_location'), + ssl_opts => [ + verify_hostname => 0, + SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE, + ] + ) || undef; unless ($self->{'__ispconfig_client'}) { $self->{'__ispconfig_error'} = 'Error creating SOAP client'; |