Skip to content
JS
Node.js error

ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY

An invalid value for the key argument has been passed to the crypto.ECDH() class computeSecret() method. It means that the public key lies outside of the elliptic curve.

Reference entryNode.jsFetched

Node.js documentation lists the code ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY without the printed message text.

Category
Node.js error codes
Severity
error
Runtime
node
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: Node.js documentation. Data fetched 2026-09-25T01:43:12.378Z.