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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: