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

Clearer error than "error dialing host:port: Host validation error"

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • mongorestore
    • None

    Description

      I had set up a replica set with both SSL and keyfile authentication enabled, and while running `mongorestore`, I kept seeing this error. Turns out there was a mismatch between the domain in the SSL PEMKeyFile and the hostname.

      A clearer error would mention something about "SSL" or "certificate".

      Attachments

        Activity

          People

            david.golden@mongodb.com David Golden
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: