jamesiarmes / php-ews

PHP Exchange Web Services
http://jamesarmes.com/php-ews/
MIT License
567 stars 302 forks source link

I can't solve the SSL problem #582

Open ismailtunga opened 4 years ago

ismailtunga commented 4 years ago

application outlook.office365.com is running smoothly

I couldn't run it on our own server

http connection is not allowed on the server we are working on. We can only make https connection.

I made the ssl settings of the apache server and responds to requests without problems.

I made the ssl settings of the Apache server and responded to the problems without any problems. Do I need to make an extra setting for PHP? `$version = Client::VERSION_2016;

$key = "/usr/local/se/cert/processcenter_vodafone_local.key"; $crt = "/usr/local/se/cert/processcenter_vodafone_local.crt";

$curlOptions = [ CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSLCERT => $crt, CURLOPT_SSLKEY => $key ]; $client = new Client($host, $username, $password, $version); $client->setTimezone($timezone); $client->setCurlOptions($curlOptions);`

when i call the page [Thu Mar 05 12:43:26.916956 2020] [php7:error] [pid 1692] [client 10.86.44.137:51323] PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't bind to service in /opt/rh/httpd24/root/var/www/html/exchange/vendor/jamesiarmes/php-ntlm/src/SoapClient.php:65\nStack trace:\n#0 /opt/rh/httpd24/root/var/www/html/exchange/vendor/jamesiarmes/php-ntlm/src/SoapClient.php(65): SoapClient->SoapClient('/opt/rh/httpd24...', Array)\n#1 /opt/rh/httpd24/root/var/www/html/exchange/vendor/php-ews/php-ews/src/Client.php(1611): jamesiarmes\PhpNtlm\SoapClient->__construct('/opt/rh/httpd24...', Array)\n#2 /opt/rh/httpd24/root/var/www/html/exchange/vendor/php-ews/php-ews/src/Client.php(182): jamesiarmes\PhpEws\Client->initializeSoapClient()\n#3 /opt/rh/httpd24/root/var/www/html/exchange/vendor/php-ews/php-ews/src/Client.php(1630): jamesiarmes\PhpEws\Client->getClient()\n#4 /opt/rh/httpd24/root/var/www/html/exchange/vendor/php-ews/php-ews/src/Client.php(670): jamesiarmes\PhpEws\Client->makeRequest('FindItem', Object(jamesiarmes\PhpEws\Request\FindItemType))\n#5 /opt/rh/httpd24/root/var/www/html/exchange/inbox.p in /opt/rh/httpd24/root/var/www/html/exchange/vendor/jamesiarmes/php-ntlm/src/SoapClient.php on line 65

what do you think could be the problem?