Openssl Error 0x02001005 and 0x2006D002 on Windows?

I am trying to convert a .cer certificate to .p12 using opensll.

this is the command i use

C:\OpenSSL-Win32\bin>openssl x509 -inform der -in developer_identity.cer -out de
veloper_identity.pem

I get an error and I don’t know what that means. How can I figure out how to fix this.

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 quite sure if I use it correctly, so I will describe what I tried.

1) Download openssl.exe and install it.

2) I copied the cert file that I want to work with to the bin folder in the installation location.

3) The command entered at the top of this message

+4
source share
6 answers
 C:\OpenSSL-Win32\bin

Looks like he's trying to open a directory for reading? Does opensl work at all or is there some problem installing it?

+2

. .

32 o 64 :

C: > OPENSSL_CONF = C:\OpenSSL-Win32\bin\openssl.cfg

C: > OPENSSL_CONF = C:\OpenSSL-Win64\bin\openssl.cfg

.

+5

, , .

Windows:

C:\> set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
+1

:

-config <full_path_to_the_openssl_config_file>

:

-config c:\OpenSSL-Win3\bin\openssl.cfg

:

openssl x509 -inform der -in developer_identity.cer -out developer_identity.pem -config c:\OpenSSL-Win3\bin\openssl.cfg
+1

, . . , ? , . , openssl . Windows .

0

, openssl C: env.

0
source

Source: https://habr.com/ru/post/1773230/


All Articles