Error Code Portal
Node.jsNode.jsError code

ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE

crypto invalid key object type

Code ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE · An issue reported by Node.js.

The given crypto key object's type is invalid for the attempted operation.

Troubleshooting and diagnostic links

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