Edit report at https://bugs.php.net/bug.php?id=33237&edit=1
ID: 33237
Comment by: dirt at awoms dot com
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:
$privateKey = openssl_pkey_new();
var_dump(getenv('OPENSSL_CONF'));
var_dump(getenv('RANDFILE'));
var_dump(getenv('HOME'));
while($message = openssl_error_string()){
echo $message.'<br />'.PHP_EOL;
}
=====
string 'E:\easyphp\php\php546x130306104831\extras\openssl.cnf' (length=53)
string '.rnd' (length=4)
string 'E:\easyphp\php\php546x130306104831\extras' (length=41)
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
=====
http://stackoverflow.com/questions/15558321/openssl-configuration-on-windows-
with-easyphp
Previous Comments:
------------------------------------------------------------------------
[2012-07-25 08:11:36] marc at iacomputing dot co dot uk
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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