Troubleshooting “error:0308010C:digital envelope routines::unsupported” in Node.js

Kacper Bąk
2 min readApr 10, 2023
Photo by Cookie the Pom on Unsplash

When working with Node.js, you may come across errors like “error:0308010C:digital envelope routines::unsupported”. This error can be frustrating, especially if you don’t know what it means or how to fix it. In this article, I will explain what this error means and give steps to resolve and fix the problem.

What does “error:0308010C:digital envelope routines::unsupported” mean?

The “error:0308010C:digital envelope routines::unsupported” error occurs when the Node.js cryptography module is unable to perform a particular cryptographic function due to an unsupported algorithm or key length. This error can occur in various situations, such as when creating a production build using webpack or running a Node.js script that uses cryptography.

Troubleshooting “error:0308010C:digital envelope routines::unsupported” error: The following are steps you can take to troubleshoot and fix the “error:0308010C:digital envelope routines::unsupported” error.

  1. Update Node.js and OpenSSL: The first step in troubleshooting this error is to ensure that you are using the latest version of Node.js and OpenSSL. You can download the latest version of Node.js from the official website, and OpenSSL can be updated…