Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start fail on systems with OpenSSL >= 1.1.1 #3205

Closed
RuneStone0 opened this issue Feb 23, 2020 · 0 comments
Closed

npm start fail on systems with OpenSSL >= 1.1.1 #3205

RuneStone0 opened this issue Feb 23, 2020 · 0 comments

Comments

@RuneStone0
Copy link

The bug
npm start will fail on systems with OpenSSL >= 1.1.1

How to reproduce

  1. Use latest version of Kali Linux or modify /etc/ssl/openssl.cnf and set CipherString to DEFAULT@SECLEVEL=2
  2. Run npm start

This will throw an error:

$ npm start

> BitShares2-light@3.3.191120 start /tmp/ui
> cross-env NODE_ENV=development node server.js

_tls_common.js:135              
      c.context.setCert(cert);
                ^

Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
    at Object.createSecureContext (_tls_common.js:135:17)
    at Server (_tls_wrap.js:873:27)
    at new Server (https.js:62:14)
    at Object.createServer (https.js:85:10)
    at Object.<anonymous> (/tmp/blockbasis-bitshares-ui/ui/server.js:61:7)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

Additional information about the issue: https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1

Solution
Generate 2048 bit long keys.

sschiessl-bcp pushed a commit that referenced this issue Feb 26, 2020
Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
@sschiessl-bcp sschiessl-bcp added this to To do in 5.0.20210216 Release via automation Feb 26, 2020
@sschiessl-bcp sschiessl-bcp moved this from To do to Done in 5.0.20210216 Release May 13, 2020
gades pushed a commit to piratecash/pirate-dex that referenced this issue Jun 12, 2020
Signed-off-by: Stefan Schiessl <stefan.schiessl@blockchainprojectsbv.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants