Error Code Portal
Node.jsNode.jsError code

ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY

crypto ecdh invalid public key

Code ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY · An issue reported by Node.js.

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.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.