sub run_api_call {
#start with connecting to Onelogin and getting the profiles
$client->getUseragent()->proxy(['https'], 'http://proxy.com:8080');
$client->addHeader('Authorization',"SSWS $value");
$client->addHeader('Accept','application/json');
$client->addHeader('Content-type','application/json');
$client->GET($_[0]);
}
####
sub run_api_call {
#start with connecting to Onelogin and getting the profiles
$client->getUseragent()->proxy(['https'], 'http://proxy.com:8080');
$client->setHost('my.onlogin.com');
$client->setCert("$cert");
$client->setKey("$certkey");
$client->setCa("$certca1");
$client->setCa("$certca");
$client->setTimeout(10);
$client->addHeader('Authorization',"SSWS $value");
$client->addHeader('Accept','application/json');
$client->addHeader('Content-type','application/json');
$client->GET($_[0]);
}
####
Its Responsecode1 : 500 .
ts Responsecontent : SSL upgrade failed: SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at C:/Strawberry/perl/vendor/lib/LWP/Protocol/http.pm line 209.