Error: error:0308010C:digital envelope routines::unsupported
An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.
digital envelope routines::unsupported Meaning
Node 17 switched to OpenSSL 3, which removes MD4 by default. Webpack 4 uses MD4 for hashing, so builds crash.
Common causes
- webpack 4 / react-scripts 4 on Node 17+
- Other tools hashing with legacy algorithms
⚡ Quick fix
- Upgrade to webpack 5 / react-scripts 5+ / Vite
- Temporary: NODE_OPTIONS=--openssl-legacy-provider
- Or use Node 16 for that legacy project
Detailed fix by platform
Node.js
NODE_OPTIONS=--openssl-legacy-provider npm run build
How to diagnose
- Tool — Which bundler version?
- Node — Version 17+?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- [Vue warn]: Component is missing template or render function Vue: [Vue warn]: Component is missing template or render function.
- ca md too weak / ee key too small OpenSSL: error:0A00018E:SSL routines::ca md too weak / error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
- Cloud Functions: Build failed Cloud Functions: Build failed: function.js does not exist / npm install failed with exit code 1 (Cloud Build step)
Most viewed in Node.js
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026