ID: 33237 Updated by: [EMAIL PROTECTED] Reported By: christopher dot s dot ward at navy dot mil -Status: Closed +Status: Bogus Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: Irrelevant New Comment:
There was no problem in the docs, so it's Bogus. Previous Comments: ------------------------------------------------------------------------ [2005-06-10 01:03:40] christopher dot s dot ward at navy dot mil It started working. I don't know why. I am closing the bug report. ------------------------------------------------------------------------ [2005-06-08 19:41:40] christopher dot s dot ward at navy dot mil I respectfully disagree. Shouldn't the openssl_pkey_new() function should return a value? It doesn't. When I issue the following code: $privkey = openssl_pkey_new(); if($privkey) print("Private key is a non-zero value.<BR>"); else print("Private key is FALSE.<BR>"); I get the following: Private key is FALSE. ------------------------------------------------------------------------ [2005-06-07 12:16:03] [EMAIL PROTECTED] So it works - "NCONF_get_string:no value" is only some kind of notice. ------------------------------------------------------------------------ [2005-06-06 19:32:19] christopher dot s dot ward at navy dot mil Per your request, I put a copy of the distributed OPENSSL.CNF file in the default location (c:\usr\local\ssl). No change in results. I then re-directed the OPENSSL_CONF environment variable to this new location and rebooted the box. It still fails, but with different error messages: error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value error:0E06D06C:configuration file routines:NCONF_get_string:no value == Output from var_dump(getenv(OPENSSL_CONF)) == string(28) "C:\usr\local\ssl\openssl.cnf" ------------------------------------------------------------------------ [2005-06-06 17:41:09] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33237 -- Edit this bug report at http://bugs.php.net/?id=33237&edit=1