From: christopher dot s dot ward at navy dot mil
Operating system: Windows 2000
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: openssl_pkey_new() fails
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 bug report at http://bugs.php.net/?id=33237&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33237&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33237&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33237&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33237&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33237&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33237&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33237&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33237&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33237&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33237&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33237&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33237&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33237&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33237&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33237&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33237&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33237&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33237&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33237&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33237&r=mysqlcfg