简体   繁体   中英

How do I access OpenSSL using Node.js?

I want to use some OpenSSL functionality from Node.js which is not provided using Node's crypto module, eg create a CSR.

The only solution I currently have is using a child process to run the openssl command line utility, but this is not the ideal solution as you are dependent on certain paths, ...

Is there a better way to do this?

If you want to generate it on linux or mac you can use https://github.com/andris9/pem

If you want to do it own windows you can use openssl binaries.

Of course in both cases child process has been used. I think that's the only way you can get it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM