Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-247

Support custom SSL for auth methods

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      I want to login and authenticate against a server which has a custom SSL certificate and verify it myself. But I don't see a way to set the configuration for these parts of the API.
      Realm.Sync.User.login('https://localhost:9443', 'u', 'pw')

      The method works against http://localhost:9080 but I don't want to send passwords over http.

      Actual Results

      FetchError: request to https://localhost:9443/auth failed, reason: unable to get local issuer certificate

      Steps to Reproduce

      Start a local ROS instance with a self signed certificate, and try to login with https.

      Version of Realm and Tooling

      • Realm JS SDK Version: realm@2.14.0
      • Node or React Native: both

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.stone@mongodb.com James Stone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: