-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error: spawn openssl ENOENT #2
Comments
Hi Vadim, I have tasted openssl-nodejs, and I don`t find any problems in the workflow. Regards, |
After playing with it, i successfully installed it. Thank you. |
Hi, what did you do to fix the error. I get the exact same one as you did. Do you have to install openssl cli for openssl-nodejs to work? or is it built in? |
@xeroxstar any details on how this was fixed? facing the same problem on windows. just tried running a minimal example from the readme provided. |
Hi @Angramme @tshiamor-adft , just make sure, that command what you try to invoke is correct (try in a terminal window) Sincerely, |
Hi @codevibess , thanks for the reply. I first tried the examples in the readme, i.e
and got the same error as above, then figured there might be some changes on how some parameters are passed such as the "rsa:2048". So on terminal this command is confirmed working however it fails when using the library |
@tshiamor-adft I tested all commands from a readme in Windows 10, macOS, Centos with different node versions, but I don't get the same error. If about your peace of code: I have noticed a bug/non covered use case in my code that can cause this behavior.
But it creates a folder only when you use the Buffer parameter. For example:
Output:
Why? Workaround:
As you see I add a ../ to output private key. (for non-buffer command invocation which generates output to files use directory escaping). About unhandled exception: Summary But anyway for anyone who is faced with the same problem it can be a temporal workaround. @tshiamor-adft Please try code written above. |
thanks again @codevibess ,I tried the minimal code on a few windows computers, not sure if im missing something because I still get the same error even when running the updated command i.e:
|
its fine now, i suppose its more of an installation issue, likely that the terminal window did not have its system variables updated, with the openssl.exe path. got fixed when i ran the code from a different terminal. |
Hi, where did you paste this code? Thanks |
How to specify where to read the file from? Example: Error:
|
Why is this closed if that has not been fixed? I am having the same difficulties to run this. |
The module do not work on my end, not sure what does it mean but i get this error.
events.js:174
throw er; // Unhandled 'error' event
^
The text was updated successfully, but these errors were encountered: