ID: 33237
Updated by: [EMAIL PROTECTED]
Reported By: christopher dot s dot ward at navy dot mil
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
Operating System: Windows 2000
PHP Version: Irrelevant
New Comment:
Can you please copy the distributed openssl.cnf to the default location
c:\usr\local\ssl\? If it helps, try to copy yours openssl.cnf there. If
it still works, try <?php var_dump(getenv(OPENSSL_CONF)); ?> so that we
can see where the problem lies.
Previous Comments:
------------------------------------------------------------------------
[2005-06-03 21:45:13] christopher dot s dot ward at navy dot mil
Description:
------------
Environment: W2K, IIS V5.0, PHP 5.1.0-dev (I received identical
results for PHP 5.0.3)
Problem: openssl_pkey_new() fails
I am running PHP 5.1.0-dev and OpenSSL 0.9.7c. Per the documentation, I
have set the OPENSSL_CONF environment variable on my PHP server to point
to the OPENSSL.CNF file. I have verified that libeay32.dll resides in
the correct directory. I believe I have a "valid" openssl.cnf file, but
it still doesn't work....
I have found comments indicating that this command works for others.
Is the installation documentation for opensll complete?
Reproduce code:
---------------
<?php
$privkey = openssl_pkey_new();
while (($e = openssl_error_string()) !== false)
{ print($e . "<BR>");
}
?>
Expected result:
----------------
I expected $privkey to be a non-zero value. It isn't.
Actual result:
--------------
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
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33237&edit=1