Req #74059 [Nab]: openssl_error_string needs to be clearer / more verbose
Edit report at https://bugs.php.net/bug.php?id=74059&edit=1
ID: 74059
Updated by: requinix@php.net
Reported by: lightnb at bellsouth dot net
Summary: openssl_error_string needs to be clearer / more
verbose
Status: Not a bug
Type: Feature/Change Request
Package: OpenSSL related
Operating System: Ubuntu 16.04
PHP Version: 7.0.15
Block user comment: N
Private report: N
New Comment:
From the source, I don't see how the configuration file and line can get into an error message:
in your example the only information saved is the library name (configuration file routines),
function (NCONF_get_string), and reason (no value). There's also *source* file and line but
that's not helpful here.
What command are you running that produces the sort of verbose error message you want PHP to return?
Previous Comments:
------------------------------------------------------------------------
[2017-02-08 10:56:55] lightnb at bellsouth dot net
I believe that OpenSSL has a verbose mode with more information, which is not coming through PHP.
And since this error only occurs through PHP and not on the openssl CLI, there is no way to use that
verbose flag.
------------------------------------------------------------------------
[2017-02-08 10:38:55] requinix@php.net
The error message comes from OpenSSL, not PHP. Requests should be filed on their GitHub project: https://github.com/openssl/openssl/issues
------------------------------------------------------------------------
[2017-02-08 09:35:51] lightnb at bellsouth dot net
Description:
------------
openssl_error_string() produces useless error message like:
"error:0E06D06C:configuration file routines:NCONF_get_string:no value"
How about something more useful that includes the file (so I can be sure it's reading the right
one) and the line number or property name? Like:
"error in configuration file /path/to/some/file.conf: The property
"distinguished_name" in the "req" section cannot be empty. Line 106."
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74059&edit=1
Thread (4 messages)