Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2397

Setting net.tls.mode: requireSSL results in "unsupported value for tlsMode requireSSL"

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      ubuntu xenial

      I am attempting to update mongo ssl configuration which is deprecated in 4.2 to tls configuration.

      $ cat /etc/mongod.conf | grep -A 6 net:
      net:
      port: 27017
      bindIp: 127.0.0.1,10.131.27.67
      tls:
      mode: requireSSL
      certificateKeyFile: [CERTS_DIR]/server/mongo-server.pem
      CAFile: [CERTS_DIR]/ca/mongo-ca.crt

      Yet when I start mongo it prints this error:

      Oct 15 07:23:22 datastore02 mongod[20128]: 2019-10-15T07:23:22.593+0100 F CONTROL [main] Failed global initialization: BadValue: unsupported value for tlsMode requireSSL

      Docs say this value is supported.

            Assignee:
            tim.fogarty@mongodb.com Tim Fogarty
            Reporter:
            markjgsmith@gmail.com Mark Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: