0

I have created self signed Certificated by using openssl and have mongodb.pem(mongodb.key + mongodb.cert) file generated from openssl. Also i have my mongodb-ssl.conf file as follows

storage:
 dbPath: C:\Users\rajshanb\MongoDB\data\db\
net:
 port: 27018 
 bindIp: 127.0.0.1
 ssl:
 Mode = requireSSL
 PEMKeyFile = C:\Users\rajshanb\mongodb.pem
 PEMKeyPassword = rajshanb
 CAFile = C:\Users\rajshanb\client.pem

But when i am trying to start the server from terminal :

C:\Users\rajshanb\MongoDB\mongodb\bin>mongod -f C:\Users\rajshanb\mongodb-ssl.conf
Unrecognized option: net.ssl
try 'mongod --help' for more information

I'm getting above mentioned error. Please help me to identify whether i am missing something in configuration.

I am having installed MongoDB version as :

C:\Users\rajshanb>mongod --version
db version v3.4.6
git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5
OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
allocator: tcmalloc
modules: enterprise
build environment:
 distmod: windows-64
 distarch: x86_64
 target_arch: x86_64
asked Oct 31, 2017 at 14:13
0

2 Answers 2

2

That Mode should be mode, so no Capital first letter.

Those = should be :

answered Nov 1, 2017 at 4:50
0
0

its an spacing issue in configuration definition here are my working configurations

net:
 port: 28017
 bindIp: 127.0.0.1
 ssl:
 mode: requireSSL
 PEMKeyFile: /etc/ssl/mongodb/mongodb-server.pem
 CAFile: /etc/ssl/mongodb/mongodb-client.pem
 PEMKeyPassword: abc123+
answered Jul 22, 2018 at 0:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.