diff --git a/ACU/API/Base.pm b/ACU/API/Base.pm index abfd95e..f772a10 100644 --- a/ACU/API/Base.pm +++ b/ACU/API/Base.pm @@ -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;