Skip to content

Instantly share code, notes, and snippets.

@ptheofan
Created November 27, 2019 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptheofan/0d7a5f4f1285c2544dd137b0a05aa294 to your computer and use it in GitHub Desktop.
Save ptheofan/0d7a5f4f1285c2544dd137b0a05aa294 to your computer and use it in GitHub Desktop.
<?php
[
'dsn' => 'mongodb://username:password@objectdb.cluster-xxx.eu-central-1.docdb.amazonaws.com:27017/database_name',
'options' => [
'ssl' => true,
'tlsAllowInvalidCertificates' => true,
'tlsAllowInvalidHostnames' => true,
'tlsCAFile' => '/apps/certificates/rds-combined-ca-bundle.pem',
],
]
@dekameron
Copy link

dekameron commented Nov 27, 2019

You are using an absolute path for pem-file.
Try to fix it by adding __DIR__ and making this path correct

@ptheofan
Copy link
Author

tlsCAFile path is correct. The file is in that folder and accessible by fpm with read access rights. Adding __DIR__ will still result in an absolute path. How would this change anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment