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

TLS module doesn't load openssl engine #26092

Closed
whocaresk opened this issue Feb 14, 2019 · 1 comment
Closed

TLS module doesn't load openssl engine #26092

whocaresk opened this issue Feb 14, 2019 · 1 comment
Labels
crypto Issues and PRs related to the crypto subsystem.

Comments

@whocaresk
Copy link

whocaresk commented Feb 14, 2019

  • Version: v10.15.1
  • Platform: Linux 6e28ec3fedee 4.18.0-15-generic 16-Ubuntu SMP Thu Feb 7 10:56:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: TLS module

Hello,
I'm having troubles with loading custom OpenSSL engine in TLS module.
OpenSSL outputs correct engine and ciphers.
I've build latest node LTS (v10.15.1) with shared openssl:
./configure --shared-openssl --shared-openssl-includes=/opt/cprocsp/cp-openssl-1.1.0/include --shared-openssl-libname=crypto,ssl,gostengy --shared-openssl-libpath=/opt/cprocsp/cp-openssl-1.1.0/lib/amd64
make && make install
Then, when i'm starting node with openssl-config flag it doesn't load ciphers from gostengy in TLS module, but in crypto module they exists with call
crypto.setEngine('gostengy');
I've seen older issues and following pulls (about 3 years ago) that should fixing this issue, but seems that with newer openssl version something went wrong. #5101
Here is reproduction repo that bootstraps my environment: link

@bnoordhuis bnoordhuis added the crypto Issues and PRs related to the crypto subsystem. label Feb 14, 2019
@bnoordhuis
Copy link
Member

Expectations management annex disclaimer: if you're not using the bundled openssl, you're basically on your own. That's not a supported configuration, it's mainly for distro vendors.

If you have specific reason to believe it's an issue with Node.js (with suggestions on how to fix it), we could leave this open in case someone is willing to work on it; pull request also welcome, of course. Otherwise it's probably best to move it to nodejs/help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants