Error Code Portal
Node.jsNode.jsError code

ERR_TLS_DH_PARAM_SIZE

tls dh param size

Code ERR_TLS_DH_PARAM_SIZE · An issue reported by Node.js.

While using TLS, the parameter offered for the Diffie-Hellman (DH) key-agreement protocol is too small. By default, the key length must be greater than or equal to 1024 bits to avoid vulnerabilities, even though it is strongly recommended to use 2048 bits or larger for stronger security.

Troubleshooting and diagnostic links

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