[英]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. 我想使用Node.js的一些OpenSSL功能,而使用Node的
crypto
模块则无法提供这些功能,例如创建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, ... 我目前唯一的解决方案是使用子进程来运行
openssl
命令行实用程序,但这不是理想的解决方案,因为您依赖于某些路径,...
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 如果要在Linux或Mac上生成它,可以使用https://github.com/andris9/pem
If you want to do it own windows you can use openssl binaries. 如果要自己创建Windows,可以使用openssl二进制文件。
Of course in both cases child process has been used. 当然,在两种情况下都使用了子进程。 I think that's the only way you can get it
我认为那是获得它的唯一途径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.