Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-252

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • 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@mongodb.com Ross Lawley
            Reporter:
            srinu.gajjala321 srinivas rao gajjala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: