Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How do I access OpenSSL using Node.js?

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, e.g. 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?

Problem courtesy of: Golo Roden


If you want to generate it on linux or mac you can use

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

Solution courtesy of: khurrum qureshi


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

How do I access OpenSSL using Node.js?


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription