Check certificate
This commit is contained in:
parent
5b8456fa69
commit
9b53b5d7e8
@ -70,6 +70,8 @@ sub get($$)
|
||||
my $url = shift;
|
||||
my $ua = LWP::UserAgent->new;
|
||||
|
||||
$ua->ssl_opts(SSL_ca_file => "/etc/ldap/cacert.pem");
|
||||
|
||||
log(DEBUG, 'GET Request to ', API_URL, $url);
|
||||
my $req = GET API_URL . $url;
|
||||
|
||||
@ -86,6 +88,8 @@ sub send($$$)
|
||||
my $url = shift;
|
||||
my $ua = LWP::UserAgent->new;
|
||||
|
||||
$ua->ssl_opts(SSL_ca_file => "/etc/ldap/cacert.pem");
|
||||
|
||||
log(DEBUG, 'POST Request to ', API_URL, $url);
|
||||
my $req = POST API_URL . $url, shift;
|
||||
|
||||
|
Reference in New Issue
Block a user