#33237 [Csd->Bgs]: openssl_pkey_new() fails

From: Date: Fri, 10 Jun 2005 07:11:44 +0000
Subject: #33237 [Csd->Bgs]: openssl_pkey_new() fails
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368518@lists.php.net to get a copy of this message
 ID:               33237
 Updated by:       vrana@php.net
 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] vrana@php.net

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] vrana@php.net

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


Thread (7 messages)

« previous php.doc (#969368518) next »