curl SSL certificate error

76 views
Skip to first unread message

אופיר קוברמן

unread,
Jul 18, 2016, 1:52:53 PM7/18/16
to google-cloud-sdk
Hello i am trying to do curl with header
$opts = array(
'http'=>array(
'header'=>"X-AUTH-TOKEN: her will be \r\n"
'method'=>"GET",
) );
stream_context_set_params($context, array('user_agent' => 'UserAgent/1.0'));
$context = stream_context_create($opts); $API_URL ="url here";
$contact_api = file_get_contents($API_URL ."?". http_build_query($uri), false, $context);
and when i run it , i get this error :
: failed to open stream: SSL certificate error - certificate invalid or non-existent, [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) in
in the postman or outher server its work i think its somethink in setting in appengine
i didnt find any answer from google
Reply all
Reply to author
Forward
0 new messages