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 67579ea commit f36f0eeCopy full SHA for f36f0ee
recipes/crypto-create-credentials/README.md
@@ -24,14 +24,7 @@ const credentials = createCredentials({
24
```js
25
// Updated to use createSecureContext from node:tls
26
const { createSecureContext } = require('node:tls');
27
-
28
-const credentials = createSecureContext({
29
- key: privateKey,
30
- cert: certificate,
31
- ca: [caCertificate]
32
-});
33
34
-// Updated ES module import
+// OR
35
import { createSecureContext } from 'node:tls';
36
37
const credentials = createSecureContext({
0 commit comments