Skip to content

Node 11.9+ Exception on openssl digital envelope routines cipher parameter evp_lib.c #27213

@MasterJames

Description

@MasterJames

Version: 11.13 crashes but in 11.8 it works (fails/waiting since 11.9)
Platform: Linux 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: ../deps/openssl/openssl/crypto/evp/evp_lib.c:81

Error:
error:060CC07A:digital envelope routines:EVP_CIPHER_asn1_to_param:cipher parameter error:../deps/openssl/openssl/crypto/evp/evp_lib.c:81

It is a pretty cryptic error (ha ha no pun intended).
I guess it has to do with openssl encryption maybe there is something else I should update.
I pass some encrypted stuff over a socket to nodejs from Chrome and get this error message above, while in node 11.8 there is no problem.

This is via SSL only, and might be related to elliptic encryption.
Unrelated to node execution the keys are generated this way.
openssl ecparam -genkey -name secp384r1 -out server-key.pem

but it connects okay initially I guess it is more to do with sending over the socket.

(anonymous) | @ | VM81:2026
-- | -- | --
  | emit | @ | VM13 events.js:202
  | EventEmitter.emit | @ | VM146 domain.js:439
  | (anonymous) | @ | VM14 execution.js:128
  | TLSWRAP (async) |   |  
  | init | @ | VM34 inspector_async_hook.js:21
  | emitInitNative | @ | VM19 async_hooks.js:137
  | TLSSocket._wrapHandle | @ | VM126 _tls_wrap.js:427
  | TLSSocket | @ | VM126 _tls_wrap.js:327
  | tlsConnectionListener | @ | VM126 _tls_wrap.js:750
  | emit | @ | VM13 events.js:197
  | EventEmitter.emit | @ | VM146 domain.js:439
  | onconnection | @ | VM61 net.js:1501
  | TCPSERVERWRAP (async) |   |  
  | init | @ | VM34 inspector_async_hook.js:21
  | emitInitNative | @ | VM19 async_hooks.js:137
  | createServerHandle | @ | VM61 net.js:1180
  | setupListenHandle | @ | VM61 net.js:1236
  | listenInCluster | @ | VM61 net.js:1304
  | doListen | @ | VM61 net.js:1443
  | processTicksAndRejections | @ | VM30 next_tick.js:76
  | runNextTicks | @ | VM30 next_tick.js:51
  | Module.runMain | @ | VM46 loader.js:800
  | executeUserCode | @ | VM11 node.js:526
  | startMainThreadExecution | @ | VM11 node.js:439
  | TickObject (async) |   |  
  | init | @ | VM34 inspector_async_hook.js:21
  | emitInitNative | @ | VM19 async_hooks.js:137
  | emitInitScript | @ | VM19 async_hooks.js:336
  | TickObject | @ | VM30 next_tick.js:99
  | nextTick | @ | VM30 next_tick.js:130
  | lookup | @ | VM215 dns.js:132
  | lookupAndListen | @ | VM61 net.js:1438
  | Server.listen | @ | VM61 net.js:1388
  | listenUp | @ | VM81:2066
  | begin | @ | VM81:1993


Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.tlsIssues and PRs related to the tls subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions