WebAPI error: string(69) "SSL certificate problem: self signed certificate in certificate chain"

I get this error printed:
string(69) “SSL certificate problem: self signed certificate in certificate chain”

When I try to execute the following code:

require(‘CryptlexApi.php’);
CryptlexApi::SetApiKey(“69D60023-D67E-5100-F5F2-C6CE89BCAEEB”);
$version_id = ‘11774’;
$options = array(“total_keys” => “1”,
“email” => "eugene@agena.co.uk",
“cust_field_id[]” => array(),
“cust_field_value[]” => array()
);
$pkeys = CryptlexApi::GeneratePkeys($version_id, $options);

Any ideas?
I think this must be a curl error.

Hi,

In CryptlexApi.php uncomment the following line (line 140):

curl_setopt($request, CURLOPT_SSL_VERIFYPEER, 0);

Thanks!