php-microsoft-teams-connector icon indicating copy to clipboard operation
php-microsoft-teams-connector copied to clipboard

SSL certificate problem

Open sprklinginfo opened this issue 2 years ago • 2 comments

Hi, I just tried to send the SimpleCard message by copying the code in the readme, but failed with the following error:

PHP Fatal error:  Uncaught Exception: SSL certificate problem: unable to get local issuer certificate in \vendor\sebbmeyer\php-microsoft-teams-connector\src\TeamsConnector.php:43

I searched the readme and didn't find anything about the SSL certificate. any idea how to fix it? any additional config or installation required? thanks!

sprklinginfo avatar Jan 30 '23 20:01 sprklinginfo

I did not run into that problem yet, maybe some things need to be added to the curl or it's a server configuration issue

sebbmeyer avatar Feb 26 '23 19:02 sebbmeyer

Hi, add

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

to the curl.

zschwinges avatar Mar 26 '23 21:03 zschwinges