rwynn / monstache-site

documentation for the monstache project
https://rwynn.github.io/monstache-site/
MIT License
22 stars 31 forks source link

Connection URL to mongodb that requires X509 authentication #18

Open yunivrsl opened 4 years ago

yunivrsl commented 4 years ago

I was successful in implementing monstache for mongodb that is username/password, however, for the mongodb that is stood up with SSL/X509 authenticcation, I cannot seem to find any good documentation that provides what options to use.

I'm using monstache version 6.5.2 and attempted to setup TOML file with mongodb URL with "CN...@mongo1:27017,mongo2:27017,mongo3:27017/db?replSet=rs0&ssl=true&authMechanism=MONGODB-X509&sslCA=...&sslCert=...&sslKey=... However, i keep getting x509: certificate signed by unknown authority. But the files I'm using is used in my application to connect to mongodb via mongoose client.

Anyone? Anyone? please keep some support.

thanks.