Getting Error: Unknown SSL protocol error in connection to api.zoom.us:443

when i am creating meeting using Zoom API on localhost it works fine,
but when am upload it on the server then it giving me an error on create meetings
Unknown SSL protocol error in connection to api.zoom.us:443
please assist me what I do, my project is in PHP- Codeigniter

my code is given below :

protected function sendRequest($data) {
$request_url = ‘https://api.zoom.us/v2/users/me/meetings’;
$headers = array(
"authorization: Bearer ".$this->generateJWTKey(),
‘content-type: application/json’
);
$postFields = json_encode($data);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $request_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_SSL_VERIFYPEER=>0,
CURLOPT_VERBOSE => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS => $postFields,
CURLOPT_HTTPHEADER => $headers,
));

$response = curl_exec($curl);
$err = curl_error($curl);
$info = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);

if($info==‘201’){
return json_decode($response); }
elseif($info==‘300’){
return “Invalid enforce_login_domains”; }
elseif($info==‘404’){
return “User Not Found”; }
else
if(!$response){
return $err;
}
}

Hey @arpitktyr,

This must be an issue with your PHP server configuration.

Checkout these threads and let me know if they help:

https://devforum.zoom.us/search?q=Unknown%20SSL%20protocol%20error

Thanks,
Tommy

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.