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

Any way to customize the path of the openssl command? #23

Open
erawhctim opened this issue Sep 14, 2018 · 3 comments
Open

Any way to customize the path of the openssl command? #23

erawhctim opened this issue Sep 14, 2018 · 3 comments

Comments

@erawhctim
Copy link

erawhctim commented Sep 14, 2018

I'll spare you the details, but I'd like to use this with a different copy of openssl, installed via homebrew to /usr/local/opt/openssl instead of the default one on my machine (mac).

Apparently mac apps dont launch with the same env. variables that are available in the shell, so if I could manually configure openssl-wrapper with a custom path to the actual openssl command to use, that would help me alleviate this issue.

I'm not sure about how this library is setup, so excuse me if this is obvious, but is there a way to configure this? Or would it be an easy modification to make? Happy to help with a PR, if I have a general idea of where I'm looking. Not too familiar with node though :)

Thanks!

@erawhctim erawhctim changed the title Any way to customize the location of the openssl command? Any way to customize the path of the openssl command? Sep 14, 2018
@gnarea
Copy link

gnarea commented Jan 7, 2019

@erawhctim, as a workaround, you could temporarily alter $PATH whilst calling openssl via this library. I haven't tried it though.

@erawhctim
Copy link
Author

@gnarea Thanks for the reply - that's exactly what I'm trying to do with an Electron/React app. I have my PATH setup properly, so when I run the openssl via CLI it works as expected, but somewhere within Node/Electron the PATH isn't being read so a different openssl binary is being triggered by my app.

@marianozunino
Copy link

@erawhctim you can specify the path in with this pkg.
https://www.npmjs.com/package/openssl-ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants