Windows 上的 Openssl 错误 0x02001005 和 0x2006D002?
我正在尝试使用 opensll 将 .cer 证书转换为 .p12 证书。
这是我正在使用的命令,
C:\OpenSSL-Win32\bin>openssl x509 -inform der -in developer_identity.cer -out de
veloper_identity.pem
我不断收到错误,但我不知道它是什么意思。我怎样才能弄清楚如何修复它。
2104:error:02001005:system library:fopen:Input/output error:.\crypto\bio\bss_fil
e.c:163:fopen('C:\OpenSSL-Win32\bin','rb')
2104:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c
:168:
2104:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con
f\conf_def.c:199:
编辑1
我不完全确定我是否正确使用它,所以我将概述我的尝试。
1)下载openssl.exe并安装。
2)将我想要使用的证书文件复制到安装位置的 bin 文件夹中。
3)输入本文顶部的命令
I'm trying to convert a .cer cert to a .p12 one using opensll.
this is the command that I'm using
C:\OpenSSL-Win32\bin>openssl x509 -inform der -in developer_identity.cer -out de
veloper_identity.pem
I'm conitunally getting an error and I don't know what it means. How can I figure out how to fix it.
2104:error:02001005:system library:fopen:Input/output error:.\crypto\bio\bss_fil
e.c:163:fopen('C:\OpenSSL-Win32\bin','rb')
2104:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c
:168:
2104:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con
f\conf_def.c:199:
EDIT 1
I'm not entirely sure if I'm using it correctly so I'll outline what I tried.
1) Downloaded openssl.exe and installed it.
2) Copied the cert file I want to work with to the bin folder in the install location.
3) Entered the command at the top of this post
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
不确定这对你来说是否仍然是一个悬而未决的问题,但我只是自己解决了这个问题。
从 Windows 命令提示符处:
Not sure if this is still an open issue for you or not, but I just solved this for myself.
From a Windows command prompt:
我不明白为什么每个人都建议更改环境变量。对于我来说,一切都已经注定了。也许旧版本没有?我想仔细检查一下它是否设置正确。不管怎样,我根本无法使用 openssl。安装后重新启动 Windows 解决了该问题。
I don't understand why everyone suggests changing your Environment Variables. For me, it was already set. Perhaps the older versions didn't? I guess double check it's set right. Either way, I was unable to use openssl at all. Restarting Windows after installation solved the issue.
我通过将 openssl 目录移动到 C: 驱动器的根目录并设置 env 变量解决了该问题。
I solved the problem by moving the openssl directory to the root of C: drive and setting the env variable.
我也有同样的问题。我按照上面的答案解决了。
只需根据 32 位或 64 位输入:
C:>设置 OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
或
C:>设置 OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
谢谢。
I had the same problem. I resolved with the above answer.
Just type depending on 32 o 64 bits:
C:> set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
or
C:> set OPENSSL_CONF=C:\OpenSSL-Win64\bin\openssl.cfg
Thanks.
看起来它正在尝试打开一个目录进行读取? openssl 正常工作还是安装有问题?
Looks like it's trying to open a directory for reading? Does openssl work generally or is there some problem with its installation?
添加参数怎么样:
例如:
所以你的命令如下所示:
How about adding argument:
for example:
so your command looks like this: