Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8701

SSL - supply bad --sslPEMKeyPassword - error message could be "improved"

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • None
    • Fully Compatible
    • ALL

      Start mongo shell specifying encrypted cert file and supplying invalid password. Should FAIL With informative error message.

      ubuntu@ip-10-36-133-56:~/mongodb-linux-x86_64-subscription-ubuntu1104-2.4.0-rc0$ ./bin/mongo --ssl --sslPEMKeyFile ../mark.pem --sslPEMKeyPassword mongo1
      MongoDB shell version: 2.4.0-rc0
      connecting to: test
      Mon Feb 25 10:07:48.138 ERROR: cannot read key file: ../mark.pem error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
      Mon Feb 25 10:07:48.139 Error: ssl initialization problem src/mongo/shell/mongo.js:112
      exception: connect failed

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            gregor Gregor Macadam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: