copydbgetnonce over SSL fails with "socket exception [CONNECT_ERROR]"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Security
    • None
    • ALL
    • Hide

      On Mac OS X on the current master branch, hash 00b5c825, start mongod:

      ./mongod --nojournal --sslOnNormalPorts --sslPEMKeyFile jstests/libs/server.pem --sslCAFile jstests/libs/ca.pem --sslCRLFile jstests/libs/crl.pem --auth
      

      Connect with the shell:

      ./mongo --ssl --sslPEMKeyFile jstests/libs/client.pem admin
      

      Create a user:

      > db.createUser({user: 'admin', pwd: 'pwd', roles: [{role: 'root', db: 'admin'}]})
      

      Run "copydbgetnonce":

      > db.runCommand({copydbgetnonce: 1, fromhost: null})
      {
      	"errmsg" : "exception: socket exception [CONNECT_ERROR] for ",
      	"code" : 9001,
      	"ok" : 0
      }
      
      Show
      On Mac OS X on the current master branch, hash 00b5c825, start mongod: ./mongod --nojournal --sslOnNormalPorts --sslPEMKeyFile jstests/libs/server.pem --sslCAFile jstests/libs/ca.pem --sslCRLFile jstests/libs/crl.pem --auth Connect with the shell: ./mongo --ssl --sslPEMKeyFile jstests/libs/client.pem admin Create a user: > db.createUser({user: 'admin' , pwd: 'pwd' , roles: [{role: 'root' , db: 'admin' }]}) Run "copydbgetnonce": > db.runCommand({copydbgetnonce: 1, fromhost: null }) { "errmsg" : "exception: socket exception [CONNECT_ERROR] for " , "code" : 9001, "ok" : 0 }
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a client connects to mongod over SSL and executes the "copydbgetnonce" command, the server responds with the error:

      {
      	"errmsg" : "exception: socket exception [CONNECT_ERROR] for ",
      	"code" : 9001,
      	"ok" : 0
      }
      

      The client-server connection itself works.

            Assignee:
            Ramon Fernandez
            Reporter:
            A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: