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
49
Views
3
Comments
edited Jun 8, 2022 12:09PM in General Technical Discussions 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();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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