title: "Server is started without SSL support" error when trying to save or retrieve data from parse server with MongoDB
body: <p>I'm trying to use parse locally (with MongoDB) with my iOS mobile app. 
  I've installed node, mongo, parse, parse dashboard. I've created a pod file for my iOS project (XCode), installed parse with it. I put this code into the application didFinishLaunchingWithOptions method of the AppDelegate:     </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import Parse
  
  Parse.enableLocalDatastore()
          
          let parseConfig = ParseClientConfiguration {
              $0.applicationId = "XXXXXXXXXX"
              $0.clientKey = "YYYYYY"
              $0.server = "http://(IP addr):(port)/parse"
          }
          Parse.initialize(with: parseConfig)</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm starting mongoDB from the terminal and</p>
  
  <p>the parse server also from the terminal:</p>
  
  <pre><code>--appId “XXXXXXXXXX” --clientKey "YYYYYY" --masterKey “ZZZZ” --databaseURI mongodb://localhost/parse
  </code></pre>
  
  <p>In my XCode app's viewController's viewDidLoad method I put this code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>      import Parse
        
        let gameScore = PFObject(className:"GameScore")
          gameScore["score"] = 1337
          gameScore["playerName"] = "Sean Plott"
          gameScore["cheatMode"] = false
          gameScore.saveInBackground {
              (success: Bool, error: Error?) in
              if (success) {
  
              } else {
                  print("saveInBackground error: ", error!)
              }
          }</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I run my XCode swift app I get this error:</p>
  
  <pre><code>[Error]: unauthorized (Code: 0, Version: 1.17.2)
  error:  Error Domain=Parse Code=0 "unauthorized" UserInfo={error=unauthorized, NSLocalizedDescription=unauthorized, temporary=0}
  </code></pre>
  
  <p>This error comes from the saveInBackground Parse method. I also tried retrieving data from the parse server instead of saving, I got the same error:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let query = PFQuery(className:"GameScore")
          query.whereKey("playerName", equalTo: "Michael Yabuti")
          do {
              let scoreArray = try query.findObjects()
              print(scoreArray)
          }
          catch {
              print("findObjects error: ", error)
          }</code></pre>
  </div>
  </div>
  </p>
  
  <p>From my parse dashboard I can see that the server is running, but no data is saved there from my mobile app</p>
  
  <p>I've never done anything like this, please someone give me some pointers what the problem could be. Any help would be very much appreciated</p>
  
  <p>MongoDB gives me this error: </p>
  
  <pre><code>AssertionException handling request, closing client connection: xxx SSL handshake received but server is started without SSL support
  2019-02-13... I NETWORK  [initandlisten] connection accepted from x.x.x.x:yyyy
  </code></pre>