On 10/23/2012 7:22 AM, Sanford Staab wrote:
It looks like your missing the openssl.cnf file or maybe the my_key.key file.  
Double check your config file and command line parameters.

From: PRIYARANJAN NAYAK
Sent: Tuesday, October 23, 2012 3:03 AM
To: openssl-users@openssl.org
Subject: error while generating Certificate Signing Request

Hi ALL,

--> First I generate private key i.e  my_key.key,then I am trying to Generate a 
Certificate Signing Request:
while generating .csr file I faced this error .

C:\>C:\tmp_open_ssl\bin\openssl.exe req -new -key my_key.key -out 
my_request.csr -config C:\tmp_open_ssl\ssl\openssl.cnf
WARNING: can't open config file: c:/tmp_open_ssl;/ssl/openssl.cnf

If you are running the Windows binaries - openssl.cnf is renamed to openssl.cfg because Windows thinks .cnf files are some weird dial-up modem configuration file.

I'm not sure why there is a semi-colon in the path above. If that is a legitimate copy-paste, then there might be a bug in OpenSSL.


Error opening Private Key my_key.key
3464:error:02001002:system library:fopen:No such file or 
directory:.\crypto\bio\bss_file.c:398:fopen('my_key.key','rb')
3464:error:20074002:BIO routines:FILE_CTRL:system 
lib:.\crypto\bio\bss_file.c:400:unable to load Private Key

This error means OpenSSL can't find the file 'my_key.key' in the current directory. You wouldn't want a private key file in the root of the primary hard drive anyway because putting files into the root is a great way to hose your OS such that it won't boot.

--
Thomas Hruska
Shining Light Productions

Home of BMP2AVI and Win32 OpenSSL.
http://www.slproweb.com/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to