-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
NODE-4031 Description
What problem are you facing?
The Node.js TLS ca option can be a string, buffer, or array of string/buffer. When passing an array, the Node.js driver only picks the first value due to this line:
What driver and relevant dependency versions are you using?
Node.js driver 4.4.0.
Steps to reproduce?
Create a MongoDB TLS server (or any, really), with a custom key/cert and then try to connect with the MongoDB driver’s ca option set to an array in which the corresponding CA certificate is not in first position.
- is depended on by
-
NODE-4031 TLS ca option cannot be used as array
- Closed