#22809 [NEW]: OpenSSL fails to compute internal private key from string but works on file
| From: | php-bugs at liwing dot de | Date: | Thu, 20 Mar 2003 23:52:27 +0000 |
| Subject: | #22809 [NEW]: OpenSSL fails to compute internal private key from string but works on file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-36068@lists.php.net to get a copy of this message | ||
From: php-bugs at liwing dot de
Operating system: FreeBSD (4.8RC and 5.0)
PHP version: 4.3.1
PHP Bug Type: OpenSSL related
Bug description: OpenSSL fails to compute internal private key from string but works on file
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 bug report at http://bugs.php.net/?id=22809&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22809&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22809&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22809&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22809&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22809&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22809&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22809&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22809&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22809&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22809&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22809&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22809&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22809&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22809&r=gnused