From: Mark Wells Date: Mon, 22 Aug 2016 18:48:11 +0000 (-0700) Subject: relax SSL verification on LRN lookup, #71955 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c541cb0f1ab12a904252bd6b2658dba585860f28 relax SSL verification on LRN lookup, #71955 Conflicts: FS/FS/cdr.pm --- diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index 155090dbd..c61a7b3ee 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -28,6 +28,7 @@ use FS::rate_detail; # LRN lookup use LWP::UserAgent; use HTTP::Request::Common qw(POST); +use IO::Socket::SSL; use Cpanel::JSON::XS qw(decode_json); @ISA = qw(FS::Record); @@ -1498,7 +1499,13 @@ sub get_lrn { my $self = shift; my $field = shift; - my $ua = LWP::UserAgent->new; + my $ua = LWP::UserAgent->new( + 'ssl_opts' => { + verify_hostname => 0, + SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE, + }, + ); + my $url = 'https://ws.freeside.biz/get_lrn'; my %content = ( 'support-key' => $support_key,