Openssl error 0x02001005 and 0x2006D002 on Windows?
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
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.
C:\OpenSSL-Win32\bin
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:
-config <full_path_to_the_openssl_config_file>
for example:
-config c:\OpenSSL-Win3\bin\openssl.cfg
so your command looks like this:
openssl x509 -inform der -in developer_identity.cer -out developer_identity.pem -config c:\OpenSSL-Win3\bin\openssl.cfg
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:
C:\> set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
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.
I solved the problem by moving the openssl directory to the root of C: drive and setting the env variable.
精彩评论