Doc #33237 [Com]: openssl_pkey_new() fails
| From: | marc at iacomputing dot co dot uk | Date: | Wed, 25 Jul 2012 08:11:36 +0000 |
| Subject: | Doc #33237 [Com]: openssl_pkey_new() fails | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8635@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=33237&edit=1
ID: 33237
Comment by: marc at iacomputing dot co dot uk
Reported by: christopher dot s dot ward at navy dot mil
Summary: openssl_pkey_new() fails
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows 2000
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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
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
error:0E06D06C:configuration file routines:NCONF_get_string:no value
I've got the same problem. I'm generating pkey, csr and certs.
Previous Comments:
------------------------------------------------------------------------
[2005-06-10 09:11:41] vrana@php.net
There was no problem in the docs, so it's Bogus.
------------------------------------------------------------------------
[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"
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=33237
--
Edit this bug report at https://bugs.php.net/bug.php?id=33237&edit=1