How to set the ssl context to use disable host verification in spark mongo connector

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

      I'm trying to connect ssl enabled mongo cluster from spark and I want to set this configuration in the spark connector the way we do for other drivers. 

      MongoClient.connect("mongodb://localhost:27017?ssl=true", {
        sslValidate:true,
        checkServerIdentity:false,
        sslCA:ca
      }, function(err, client) {
        client.close();
      });
      

              Assignee:
              Ross Lawley
              Reporter:
              srinivas rao gajjala
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: