S
S
Sveratum2015-04-23 11:56:28
MongoDB
Sveratum, 2015-04-23 11:56:28

How to set up SSL in MongoDB?

Good afternoon!
I made a self-signed server certificate and signed the client certificate with it.
I'm trying to connect an ssl certificate to the monga, everything seems to be fine and the monga started up. But, how can I connect to the shell now?
But I'm trying to connect to the shell with a client certificate and the error is:

E NETWORK  SSL peer certificate validation failed:self signed certificate

In confine mongi:
sslMode = requireSSL
sslPEMKeyFile = /server.pem
sslCAFile =  /certificate.pem

I connect with the command: mongo --ssl --sslCAFile client.crt
And Robomongo with the server.pem key is connected.
How to connect to mongi shell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2015-04-23
@lega

The console does not have such a key, you may need to run mongo --nodb, without connecting to the database, and then connect with commands indicating certificates.
Why do you need ssl for monga?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question