Ticket #38938 Deal with invalid SSL certs on CDR import
authorJeremy Davis <jeremyd@freeside.biz>
Mon, 11 Jan 2016 12:55:48 +0000 (07:55 -0500)
committerJeremy Davis <jeremyd@freeside.biz>
Mon, 11 Jan 2016 12:55:48 +0000 (07:55 -0500)
FS/FS/part_export/pbxware.pm

index cb75c9b..467b79f 100644 (file)
@@ -168,6 +168,10 @@ sub api_request {
   my $self = shift;
   my ($method, $content) = @_;
   $DEBUG ||= 1 if $self->option('debug');
+
+# kludge to curb excessive paranoia in LWP 6.0+
+local $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
+
   my $url = 'https://' . $self->machine;
   my $request = POST($url,
     [ %$content,