Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Amazon DocumentDB #285

Open
komodovaran opened this issue Sep 6, 2021 · 0 comments
Open

Unable to connect to Amazon DocumentDB #285

komodovaran opened this issue Sep 6, 2021 · 0 comments

Comments

@komodovaran
Copy link

komodovaran commented Sep 6, 2021

I've tried the following:

npx omniboard --mu "mongodb://user:password@docdb-cluster-node-...docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=cert.pem&retryWrites=false"

And I get

'ssl_ca_certs' is not recognized as an internal or external command,
operable program or batch file.
'retryWrites' is not recognized as an internal or external command,
operable program or batch file.

Has anyone else tried this? Am I doing something wrong?


Update: I've made it work with DocumentDB now, using the latest version of Omniboard from npm. The problem is how Mongoose can't handle the certificate in the URI, so it has to be supplied through extra options.

In config/database.js I've added the following to mongoOptions

{
  sslCA: "./certificate.pem",
  ssl: true,
  sslValidate: true,
  tls: true
}

And then placed certificate.pem in the project root. I've also deleted all the certificate/ssl options from the URI itself. Now it works flawlessly!

Unfortunately I don't know much about javascript, so I can't contribute more than this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant