You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,26 @@ const config = {
134
134
135
135
Note: the port is not specified when using the `mongodb+srv` protocol and will be ignored if given.
136
136
137
+
### TLS/SSL Connections
138
+
139
+
Note: SSL options deprecated since MongoDB 4.2
140
+
141
+
```ts
142
+
const config = {
143
+
name: 'db',
144
+
connector: 'mongodb',
145
+
url: '',
146
+
host: 'localhost',
147
+
port: 27017,
148
+
user: '',
149
+
password: '',
150
+
database: 'testdb',
151
+
tls: true,
152
+
tlsCertificateKeyFile: '/local/path/to/pem-file',
153
+
tlsCAFile: '/local/path/to/ca-file',
154
+
};
155
+
```
156
+
137
157
## Security Considerations
138
158
139
159
MongoDB Driver allows the `$where` operator to pass in JavaScript to execute on the Driver which can be used for NoSQL Injection. See [MongoDB: Server-side JavaScript](https://docs.mongodb.com/manual/core/server-side-javascript/) for more on this MongoDB feature.
0 commit comments