Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4673

Allow passing sslCA file contents rather than path

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 1
    • 2
    • Not Needed
    • Needed

      How are you using Mongo? What version of the server and driver are you using?

      See this Mongoose issue: https://github.com/Automattic/mongoose/issues/10705 and comments on this commit: https://github.com/mongodb/node-mongodb-native/commit/b573fe159605f0a8e3d52a330de6699534b48a90

      I figured I would bring this back up because a user brought up a good point on Mongoose's GitHub (https://github.com/Automattic/mongoose/issues/10705#issuecomment-1249089350). Now that you need to pass a file path to `sslCA`, rather than the contents of a CA file, that makes things tricky for serverless functions, where some users want to specify the CA file contents as an environment variable.

      What is the feature/improvement you would like?

      A `sslCAContents` option or something similar. That should behave like the `sslCA` option, except treat the `sslCAContents` option as the raw contents of a CA file.

      What use case would this feature/improvement enable?

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            val@karpov.io Valeri Karpov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: