ERR_OSSL_DSO_COULD_NOT_LOAD_THE_SHARED_LIBRARY
See original GitHub issueI’m getting this error
node:internal/crypto/sig:131
const ret = this[kHandle].sign(data, format, type, passphrase, rsaPadding,
Error: error:25066067:DSO support routines:dlfcn_load:could not load the shared library
at Sign.sign
at Object.sign
at Object.jwsSign [as sign]
at GoogleToken.requestToken
at GoogleToken.getTokenAsyncInner
at GoogleToken.getTokenAsync
at GoogleToken.getToken
at JWT.refreshTokenNoCache
at JWT.refreshToken
at JWT.authorizeAsync
opensslErrorStack: [
'error:0E076071:configuration file routines:module_run:unknown module name',
'error:0E07506E:configuration file routines:module_load_dso:error loading dso',
'error:25070067:DSO support routines:DSO_load:could not load the shared library'
],
library: 'DSO support routines',
function: 'dlfcn_load',
reason: 'could not load the shared library',
code: 'ERR_OSSL_DSO_COULD_NOT_LOAD_THE_SHARED_LIBRARY'
}
Code:
const sheets = new GoogleSpreadsheet(SPREADSHEET_ID);
await sheets.useServiceAccountAuth({
client_email: GOOGLE_EMAIL,
private_key: GOOGLE_PRIVATE_KEY,
});
Already tried to install OPENSSL 1.1.1 as reccomended on this issue, however didn’t work.
$ openssl version
OpenSSL 1.1.1c 28 May 2019
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top Results From Across the Web
error:25066067:DSO support routines:dlfcn_load:could not ...
Perhaps the default provider is complied in statically and cannot be loaded dynamically? Perhaps a bug in the openssl config routines? Looks ...
Read more >Node.js crypto fails to sign pem key string from file with error ...
I get this error message from the sign.sign() method. error:25066067:DSO support routines:dlfcn_load:could not load the shared library.
Read more >error:25078067:DSO support routines:win32_load:could not ...
error :25078067:DSO support routines:win32_load:could not load the shared library. https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.
Read more >add option to use openssl legacy providers again - Valek, Andrej
createHash("md4")' --openssl-legacy-provider Unable to load legacy ... Error: error:12800067:DSO support routines::could not load the shared library at new ...
Read more >Problem with OpenSSL and engine_pkcs11
OpenSSL> engine -t dynamic -pre ... (dynamic) Dynamic engine loading support ... 3664:error:25078067:DSO support routines:WIN32_LOAD:could not load the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed this issue on Ubuntu 22.04 by using node 18
Setting
OPENSSL_CONF
envar to/dev/null
works but 😬