Closed
Description
Hello,
I’m having trouble connecting my PHP app to MongoDB through SSL with the new MongoDB PHP extension and the MongoDB library for PHP
-Mac os x El Capitan 10.11.6
-Mamp 4.1.1
-PHP 7.0.15
-MongoDB PHP extension 1.2.7
-MongoDB driver library mongodb/mongodb 1.1.2
All seems to be well (screenshot of my php.ini) but I have the following error :
"PHP Fatal error: Uncaught MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverSelectionTryOnce` set): [TLS handshake failed: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed calling ismaster on 'nosqljoel.documents.azure.com:10250'] in /Applications/MAMP/htdocs/website/vendor/mongodb/mongodb/src/Collection.php:513
Stack trace:
#0 /Applications/MAMP/htdocs/website/vendor/mongodb/mongodb/src/Collection.php(513): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference))
#1 /Applications/MAMP/htdocs/website/public/home.php(63): MongoDB\Collection->find(Array)
#2 {main}
thrown in /Applications/MAMP/htdocs/website/vendor/mongodb/mongodb/src/Collection.php on line 513”
I tried to change extension=mongodb.so in php.ini by the full path at the end of file extension="/Applications/MAMP/bin/php/php7.0.15/lib/php/extensions/no-debug-non-zts-20131226/mongodb.so" but in both case it’s doesn’t work.
Metadata
Metadata
Assignees
Labels
No labels