diff --git a/doc/api/crypto.md b/doc/api/crypto.md index deb4ea2822acac..94e95cc96c4be7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1753,6 +1753,9 @@ buffer containing the data encoded as DER. Note that Node.js itself does not accept DER, it is supported for interoperability with other libraries such as WebCrypto only. +If this method is invoked as its [`util.promisify()`][]ed version, it returns +a `Promise` for an `Object` with `publicKey` and `privateKey` properties. + ### crypto.generateKeyPairSync(type, options)