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 202b99f commit 67579eaCopy full SHA for 67579ea
recipes/crypto-create-credentials/README.md
@@ -10,14 +10,7 @@ See [DEP0010](https://nodejs.org/api/deprecations.html#DEP0010).
10
```js
11
// Using the deprecated createCredentials from node:crypto
12
const { createCredentials } = require('node:crypto');
13
-
14
-const credentials = createCredentials({
15
- key: privateKey,
16
- cert: certificate,
17
- ca: [caCertificate]
18
-});
19
20
-// Using destructuring with ES module imports
+// OR
21
import { createCredentials } from 'node:crypto';
22
23
const credentials = createCredentials({
0 commit comments