#22809 [Fbk->Opn]: OpenSSL fails to compute internal private key from string but works on file
| From: | php-bugs at liwing dot de | Date: | Fri, 21 Mar 2003 00:04:58 +0000 |
| Subject: | #22809 [Fbk->Opn]: OpenSSL fails to compute internal private key from string but works on file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36072@lists.php.net to get a copy of this message | ||
ID: 22809
User updated by: php-bugs at liwing dot de
Reported By: php-bugs at liwing dot de
-Status: Feedback
+Status: Open
Bug Type: OpenSSL related
Operating System: FreeBSD (4.8RC and 5.0)
PHP Version: 4.3.1
New Comment:
The patch looks good. I'll try to build in in next few days and reply
whether it works as expected or not. Did the tests run fine?
Previous Comments:
------------------------------------------------------------------------
[2003-03-20 17:53:51] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-03-20 17:52:27] php-bugs at liwing dot de
In PHP 4.3.1 the use of OpenSSL fails when the private key comes from a
string instead of a file. The test case for openssl fails, too.
To reproduce the bug, simply run the "make test" on a current build
FreeBSD system. I don't know about others, but I assume either an
incompatibility with OpenSSL 0.9.7a (because the d2i_PrivateKey method
used by the php wrapper seems to have a problem).
Using the OpenSSL commandline tools I can use my private/public keys to
sign and verify files. Because I don't know much about OpenSSL I cannot
verify the reason of the failure. The occurance seems somewhere around
line 1747 in file ext/openssl/openssl.c
If the script in the test case isn't enough (what it should), I can
attach an own one.
Kind Regards,
Jens
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22809&edit=1