PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Written By
Views

How to fix the digital envelope routines::unsupported error on Node.js

If you found yourself stuck on this error, Node's OpenSSL is to blame. But don't worry, it's a quick fix.

In the latest releases, Node.js now includes OpenSSL 3.0 (quictls/openssl which provides QUIC support). While OpenSSL 3.0 APIs should be mostly compatible with those provided by OpenSSL 1.1.1, we find some restrictions on the allowed algorithms and key sizes.

If you hit an ERR_OSSL_EVP_UNSUPPORTED error (like 0308010C:digital envelope routines::unsupported) in your application with Node.js 17, it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0.

To solve it, all you need to do is run this command

export NODE_OPTIONS=--openssl-legacy-provider

After that, the error will be gone 😁

Comments (0)

loading comments