Nodejs 16.16+: error:0308010C:digital envelope routines::unsupported

David Gilman davidgilman1 at
Fri Aug 19 12:41:06 UTC 2022

When I did some sleuthing on this topic, which resulted in , this was my finding:

- node before 17 doesn't really support openssl 3, resulting in the
error you and I are seeing.
- node 16.17 added --openssl-legacy-provider, which allows for openssl
3 to work on node 16. However, this is an ugly breaking change:
everyone needs to tweak their CLIs or export this through NODE_OPTIONS
- for compatibility, node 16 and before should just build against
openssl 1.1 by default. This is the combination that's being used by
pretty much everyone out there.

On Thu, Aug 18, 2022 at 10:32 PM Zhenfu Shi <i0ntempest at> wrote:
> Hi all,
> Can someone please help me getting this error figured out? This error has been occurring since Nodejs 16.16 update and borked the build of my filebrowser port on all systems. Apparently it’s OpenSSL related, but all the workarounds I found failed in a way or another. Upstream said they could not reproduce this and our nodejs might have issues.
> Build log:
> Ticket:
> Upstream issue:
> Thanks,
> Zhenfu

David Gilman

More information about the macports-dev mailing list