mongodb - How do I specify a client certificate to moped in mongoid.yml? -


i trying set mongoid connect mongodb server using ssl client certificates authentication. however, cannot find comprehensive reference options in mongoid.yml .

for example, found this: how enable ssl/tls in mongoid 3 client? - references ssl: true option (which seems work), mongoid.yml option not appear documented anywhere can find.

i able connect using client certificate using mongo shell. if leave out ssl: true option in mongoid.yml, @ server "assertionexception handling request, closing client connection: 17189 server configured allow ssl connections"

if use ssl: true option, "error: no ssl certificate provided peer; connection rejected" suggesting ssl: true option working.

so, there way provide client cert/key , ca cert mongoid using mongoid.yml? or there way make connection mongod , provide connection mongoid? or not possible use ssl client certificates authentication mongoid?

this question posted several years ago, before mongoid gem taken on mongodb team. mongoid 5 significant upgrade, , documentation has been dramatically improved.

i updated applications use mongoid 5; biggest change had been using lower level driver (moped) operations, better efficiency. however, mongoid 5, standard ruby mongodb driver used, had rewrite code used lower level driver.

however, worth it. among improvements in mongoid 5 documentation explains how provide client cert/key , ca cert mongoid driver @ https://docs.mongodb.com/ecosystem/tutorial/mongoid-installation/

you want provide matching configuration mongod server, explained @ https://docs.mongodb.com/manual/tutorial/configure-ssl/

also, indicated on latter page, of mongodb distributions include support ssl.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -