AWS Lambda / Node.js 18+ (OpenSSL 3)
error:1E08010C:DECODER routines::unsupported
OpenSSL 3, bundled with Node.js 17+, refuses to load a private key stored in a legacy format.
Node.js 18/20/22 ship OpenSSL 3, which disables some legacy algorithms and key encodings by default. Loading an old-format key (e.g. a traditional PKCS#1 PEM or one encrypted with a weak cipher) via `crypto.createPrivateKey`, `https`, JWT signing, or a TLS client then throws `DECODER routines::unsupported` after a runtime upgrade.
Related deadline: Lambda Node.js 20 Phase 1 — 2027-02-01.
The free EOLkits scanner runs in your browser (nothing uploaded) and flags this and related breakages across your IaC and dependency files.
Primary source: https://nodejs.org/api/crypto.html