Page 1 of 1

OpenSSL error in generating keys

PostPosted: 02. June 2009 01:46
by angelph
when i type:

"openssl genrsa -des3 -out my.key 1024"

or simply: "openssl"

i get these bunch of error messages:

E:\xampp\php\extras\openssl>openssl genrsa -des3 -out localhot.key 1024
5096:error:02001015:system library:fopen:Is a directory:.\crypto\bio\bss_file.c:
126:fopen('d:/test/opeenssl098i/openssl.cnf','rb')
5096:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c
:131:
5096:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\con
f\conf_def.c:199:

i'm running xampp for windows and i have enabled openssl in php.ini. i also copied the two dlls to windows\system32. pls help.

Re: OpenSSL error in generating keys

PostPosted: 02. June 2009 03:46
by Sharley
What version of XAMPP and which OS are you using?

Do you get similar error messages when you use the openssl.exe in the xampp\apache\bin folder?

If it is any consolation I get similar error messages in the 1.7.1 version but not in the 1.6.8 version after making a couple of path edits in the openssl.cnf file - but these edits make no difference in the 1.7.1 version so there may be a bug that has been spotted and fixed in the next or upcoming 1.7.2 version.

I have tested the openssl.exe in the apache\bin folder of the XAMPP for Windows Alpha 1.7.2 version I have installed for testing and found that it works without any errors and so it looks like the developer and forum moderator Wiedmann has been doing some work on this openssl issue in this latest version.

If you want to use this 1.7.2 version then either wait for it to be finally released or try the Alpha version:
viewtopic.php?f=16&t=35016

Alternatively, if Wiedmann reads your topic, he may be able to offer some help.

You may also wish to try the xampp\apache\bin\makecert.bat file.

Thats the best help I can offer at this point as my time for troubleshooting is very limited these days.

Re: OpenSSL error in generating keys

PostPosted: 02. June 2009 03:53
by angelph
Hi, I have XAMPP for Windows Version 1.6.3a and Windows XP SP2. I have tried both copies of openssl (apache/bin/ and php/extras/openssl), and they produce the exact same error. I will try your suggestions about makecert.bat.

Re: OpenSSL error in generating keys

PostPosted: 02. June 2009 03:59
by angelph
Thanks for your response. makecert.bat did it. you're a genius sir.