question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERR_OSSL_DSO_COULD_NOT_LOAD_THE_SHARED_LIBRARY

See original GitHub issue

I’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:open
  • Created a year ago
  • Reactions:2
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolas-tcommented, Jul 4, 2022

Fixed this issue on Ubuntu 22.04 by using node 18

1reaction
williamluke4commented, May 26, 2022

Setting OPENSSL_CONF envar to /dev/null works but 😬

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found