Skip to content

Unable to connect AWS MongoDb #1753

Open
@VirendraArekar

Description

@VirendraArekar

MongoDB \ Driver \ Exception \ ConnectionTimeoutException (13053)
No suitable servers found (serverSelectionTryOnce set): [TLS handshake failed: error:1408F10B:SSL routines:ssl3_get_record:wrong version number calling ismaster on 'reachalldbinstance.cxwewiihbz0x.us-east-2.rds.amazonaws.com:3306']

'mongodb' => [
'driver' => 'mongodb',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => [
'ssl' => true,
],
'driver_options' => stream_context_create([
'context' => [
'ssl' => [
'local_cert' => base_path('rds-combined-ca-bundle.pem'),
'allow_self_signed' => true,
'verify_peer' => true,
'verify_peer_name' => true,
'verify_expiry' => true,
]
]
])
],

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