You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IDCS token call failed in PHP

Received Response
19
Views
3
Comments
edited Apr 22, 2020 9:41PM in Integrations and APIs 3 comments

Summary

IDCS token call failed in PHP

Content

Hi,

We can retrieve IDCS access with cURL.

We are getting the following error when we do the same in PHP. Any idea how to fix it?

Thanks,

Adam

Error:

Error:SSL certificate problem: self signed certificate in certificate chain
Error:SSL certificate problem: unable to get local issuer certificate

PHP code snippet

$token = json_encode(array("token" => $payload->{'access_token'}));
 
//Store basic auth in Configuration settings
$basicAuth = "a23NjcyMDk3MTE6NDFiMTU5YTYtZTQxMy00MjJhLWE4ZDQtODY4NjFlNjczOGQ2";
//Store IDCS URL in Configuration Settings
$curlAuth = curl_init();
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!