We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599938d commit 529f7fbCopy full SHA for 529f7fb
docs/Drivers/JS/Reference/Database/README.md
@@ -48,11 +48,23 @@ If _config_ is a string, it will be interpreted as _config.url_.
48
your certificates to the _agentOptions_, e.g.:
49
50
```js
51
+ ...
52
agentOptions: {
53
ca: [
54
fs.readFileSync(".ssl/sub.class1.server.ca.pem"),
55
fs.readFileSync(".ssl/ca.pem")
- ];
56
+ ]
57
+ }
58
+ ```
59
+
60
+ Although this is **strongly discouraged**, it's also possible to disable
61
+ HTTPS certificate validation entirely, but note this has
62
+ **extremely dangerous** security implications:
63
64
+ ```js
65
66
+ agentOptions: {
67
+ rejectUnauthorized: false
68
}
69
```
70
0 commit comments