Openssl error 0x02001005 and 0x2006D002 on Windows?

14,634

Solution 1

 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?

Solution 2

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.

Solution 3

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

Solution 4

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
Share:
14,634
dubbeat
Author by

dubbeat

Updated on June 09, 2022

Comments

  • dubbeat
    dubbeat about 2 years

    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