无法从 Windows 上的/usr/local/ssl/openssl.cnf 加载配置信息 [英] Unable to load config info from /usr/local/ssl/openssl.cnf on Windows
本文介绍了无法从 Windows 上的/usr/local/ssl/openssl.cnf 加载配置信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Windows 上使用 OpenSSL 时:
While using OpenSSL on Windows:
openssl genrsa -out privatekey.pem 1024 -->
创建成功
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 365
---->
显示错误信息为
无法从/usr/local/ssl/openssl.cnf 加载配置信息
unable to load config info from /usr/local/ssl/openssl.cnf
推荐答案
安装 OpenSSL 后,我需要创建一个新的环境变量:
After installing OpenSSL I was required to create a new environment variable:
- 名称:
OPENSSL_CONF
- 值:
C:Program FilesOpenSSLopenssl.cnf
在 powershell 中:
In powershell:
$env:OPENSSL_CONF = "${env:ProgramFiles}OpenSSLopenssl.cnf"
该值与之前的安装版本不同(如本文之前的编辑所示).另外,不要忘记将 openssl 二进制文件夹 ${env:ProgramFiles}OpenSSL
添加到您的路径中.
This value differs from previous installation versions (as seen in a previous edit of this post). Also, don't forget to add the openssl binary folder ${env:ProgramFiles}OpenSSL
to your Path.
这篇关于无法从 Windows 上的/usr/local/ssl/openssl.cnf 加载配置信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文