Help pls with OpenSSL and openssl_pkey_new function

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

Help pls with OpenSSL and openssl_pkey_new function

Postby n00bvn » 20. September 2012 14:52

Hi guys,

I'm looking solution for this in days but openssl_pkey_new() function still error.

I'm using XAMPP 1.8.0 on Windows XP.
With php_info() I've something below:
Apache Version Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1c 10 May 2012
OpenSSL Header Version OpenSSL 0.9.8u 12 Mar 2012


I had all of openssl.cnf, libeay32.dll and ssleay32.dll in both C:\xampp\apache\bin\ and C:\Windows\system32\ folder. 2 .dll files also in C:\xampp\php\ folder. I also got "C:\xampp\php\;C:\xampp\apache\bin" in PATH Environment Variables. I also got extension=php_openssl.dll in php.ini.

Then I tried this below code:
Code: Select all
print "<b>Generating new key...</b><br/>";
$privkey = openssl_pkey_new();
while (($error = openssl_error_string()) !== false) {
echo $error . "<br/>\n";
$errorCount++;
}

and I always have error like below:
Generating new key...
error:02001003:system library:fopen:No such process

Notice: Undefined variable: errorCount in C:\xampp\htdocs\ssl.php on line 7
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib
error:02001003:system library:fopen:No such process
error:2006D080:BIO routines:BIO_new_file:no such file
error:0E064002:configuration file routines:CONF_load:system lib


I really need this. So please help me fix this error.
Thanks for all ur helps!
n00bvn
 
Posts: 2
Joined: 20. September 2012 14:33
Operating System: Windows XP

Re: Help pls with OpenSSL and openssl_pkey_new function

Postby mpapec » 22. September 2012 07:46

I've had the same issue, and downgraded to 1.7.3
It seems that apache and php are using different and incompatibile openssl versions:

http://community.apachefriends.org/f/viewtopic.php?p=190619
https://bugs.php.net/bug.php?id=55470
mpapec
 
Posts: 3
Joined: 22. September 2012 07:38
Operating System: windows

Re: Help pls with OpenSSL and openssl_pkey_new function

Postby n00bvn » 22. September 2012 17:43

so you installed v1.7.3 and everything worked great?
n00bvn
 
Posts: 2
Joined: 20. September 2012 14:33
Operating System: Windows XP

Re: Help pls with OpenSSL and openssl_pkey_new function

Postby mpapec » 22. September 2012 20:32

n00bvn wrote:so you installed v1.7.3 and everything worked great?


yes, openssl signing and verify are back again with 1.7.3 (xampplite version)
mpapec
 
Posts: 3
Joined: 22. September 2012 07:38
Operating System: windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 90 guests