Replies: 13 comments 11 replies
-
I'm getting the same error while using the Google Cloud Storage client library. When it goes to sign data to request an access token, it throws that error. I can also reproduce using the steps @laneme listed above. As a workaround, I ran I first ran into this issue after upgrading to Ubuntu 22.04 which has the same |
Beta Was this translation helpful? Give feedback.
-
There's almost certainly something in your openssl configs that instruct it to load a third-party library ("engine" in openssl nomenclature) that's missing or, more likely, incompatible with openssl 3. |
Beta Was this translation helpful? Give feedback.
-
Because this seems like a configuration issue with Ubuntu, I posted this same question on askubuntu.com here: https://askubuntu.com/questions/1409458/openssl-config-cuases-error-in-node-js-crypto-how-should-the-config-be-updated |
Beta Was this translation helpful? Give feedback.
-
Hi Guys, I took it off https://help.zoho.com/portal/en/community/topic/cant-install-zoho-workdrive-app-in-ubuntu-22-04 |
Beta Was this translation helpful? Give feedback.
-
Thanks @k0d3d. That's an interesting fix. If I'm understanding the config file correctly (which seems unlikely as I'm not an openssl guru) commenting out that line should mean that openssl loads the default provider and no others. (see Somehow it seems like if the config file defines any provider section (even if it does not define any providers) then it does not load the default provider, even if explicitly told to do so. Perhaps the default provider is complied in statically and cannot be loaded dynamically? Perhaps a bug in the openssl config routines? Looks like providers are a new concept in openssl 3.0, so hopefully Ubuntu will provide an appropriate config soon. openssl/openssl#16249. In the meantime, I guess we now have two viable workarounds. |
Beta Was this translation helpful? Give feedback.
-
As this isn't a bug in node I'll go ahead and convert the issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Others are seeing this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011051 |
Beta Was this translation helpful? Give feedback.
-
Launchpad issue for porting the fix to Ubuntu 22.04's |
Beta Was this translation helpful? Give feedback.
-
I am experiencing the same issue when tying to use crypto.createPrivateKey, and found this discussion. My setup:
The behavior is weird - I will illustrate below with the test code below: const crypto = require('crypto');
const privateKeyPEM = '...'
console.log('------------------------------------------------------TRY 01')
try {
console.log(crypto.createPrivateKey(privateKeyPEM))
} catch (err) {
console.log(err)
}
console.log('------------------------------------------------------TRY 02')
try {
console.log(crypto.createPrivateKey(privateKeyPEM))
} catch (err) {
console.log(err)
}
console.log('------------------------------------------------------END') This is launched with:
which shows that the issue only occurs on the first run, and subsequent calls succeed. Launching the same file with:
I am just recording my observations - hopefully they are helpful to somebody with hands in code somewhere! |
Beta Was this translation helpful? Give feedback.
-
We've encountered this issue previously with version 16.15.0 on Ubuntu 22.04 and based on our testing so far, it has been resolved in 16.16.0. Looking at the release notes, it looks to me this was resolved in https://nodejs.org/en/blog/vulnerability/july-2022-security-releases/#dll-hijacking-on-windows-high-cve-2022-32223 | #43124 Thought to just mention in this thread if it resolves it for your use-case as well. |
Beta Was this translation helpful? Give feedback.
-
this solved my issue |
Beta Was this translation helpful? Give feedback.
-
In my case i use Phantom for generate highcharts graph with Ubuntu 22.04.2 LTS and OpenSSL 3.0.2 [openssl_init] [provider_sect] # This one 👇 |
Beta Was this translation helpful? Give feedback.
-
For users who dont have any specific version requirements for either ubuntu or openssl, it seem to have solved for any of the 2023's versions of ubuntu desktop v22 for me. |
Beta Was this translation helpful? Give feedback.
-
Version
16.15.0
Platform
Linux usernam 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Very unfornutalely i cannot find a way to reproduce this accross platforms but its worth noting that this problem isnt specific to version 16.15.0. It happens on 16.10.0 and 18.* too
The following code is what triggers the error
How often does it reproduce? Is there a required condition?
It DOES throw on the machine with
OpenSSL 3.0.2
, it does NOT throw on theOpenSSL 1.1.1f
machine.What is the expected behavior?
Expecting a signed buffer returned from
crypto.sign
funciton.What do you see instead?
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions