Skip to content

Instantly share code, notes, and snippets.

@ptheofan
Created November 27, 2019 00:47
Show Gist options
  • Select an option

  • Save ptheofan/0d7a5f4f1285c2544dd137b0a05aa294 to your computer and use it in GitHub Desktop.

Select an option

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

dekameron commented Nov 27, 2019

Copy link
Copy Markdown

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

@ptheofan

Copy link
Copy Markdown
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