Skip to content

Wont connect to mongodb atlas due to ssl #285

Closed
@redimongo

Description

@redimongo

This is the full error in full, I switched from Mongo PHP driver to MongoDB driver for PHP and it seems to say that I can't make the SSL connection, however in robomongo another app I turn ssl off for that.

But I would rather keep ssl on, how would one go about fixing this issue please.

Fatal error: Uncaught exception 'MongoDB\Driver\Exception\SSLConnectionException' with message 'MongoDB\Driver\Manager::selectServer(): SSL operation failed with code 1.
OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed' in /home/petfindr/public_html/new/vendor/mongodb/mongodb/src/Collection.php:464

Stack trace:
#0 /home/petfindr/public_html/new/vendor/mongodb/mongodb/src/Collection.php(464): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference)
#1 /home/petfindr/public_html/new/configs/core.php(23): MongoDB\Collection->findOne(Array)
#2 /home/petfindr/public_html/new/index.php(95): syscore->testDBConnection()
#3 {main} thrown in /home/petfindr/public_html/new/vendor/mongodb/mongodb/src/Collection.php on line 464

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions