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
User updated by: lightnb at bellsouth dot 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:
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.
Previous Comments:
------------------------------------------------------------------------
[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)