OpenSSL error in generating keys

Problems with the Windows version of XAMPP, questions, comments, and anything related.

OpenSSL error in generating keys

Postby angelph » 02. June 2009 01:46

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.
angelph
 
Posts: 3
Joined: 02. June 2009 01:42

Re: OpenSSL error in generating keys

Postby Sharley » 02. June 2009 03:46

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.
Last edited by Sharley on 02. June 2009 03:59, edited 2 times in total.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: OpenSSL error in generating keys

Postby angelph » 02. June 2009 03:53

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.
angelph
 
Posts: 3
Joined: 02. June 2009 01:42

Re: OpenSSL error in generating keys

Postby angelph » 02. June 2009 03:59

Thanks for your response. makecert.bat did it. you're a genius sir.
angelph
 
Posts: 3
Joined: 02. June 2009 01:42


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 114 guests