sebbmeyer / php-microsoft-teams-connector

PHP Microsoft Teams Connector
MIT License
111 stars 22 forks source link

SSL certificate problem #26

Open sprklinginfo opened 1 year ago

sprklinginfo commented 1 year ago

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!

sebbmeyer commented 1 year ago

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

zschwinges commented 1 year ago

Hi, add

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

to the curl.