php-microsoft-teams-connector
php-microsoft-teams-connector copied to clipboard
SSL certificate problem
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!
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
Hi, add
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
to the curl.