Doc #55307 [NEW]: openssl_pkcs7_verify - detached process failure
| From: | g dot monika at nic dot in | Date: | Thu, 28 Jul 2011 07:05:17 +0000 |
| Subject: | Doc #55307 [NEW]: openssl_pkcs7_verify - detached process failure | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6945@lists.php.net to get a copy of this message | ||
From:
Operating system: ubuntu linux
PHP version: 5.3.6
Package: OpenSSL related
Bug Type: Documentation Problem
Bug description:openssl_pkcs7_verify - detached process failure
Description:
------------
---
From manual page:
http://www.php.net/function.openssl-pkcs7-verify%23Return%20Values
---
// $file - signed message
// $ca - Array of Trusted Certificate
// $input_content - Actual Input Data for verification
$res= openssl_pkcs7_verify($file,PKCS7_DETACHED,
"certverify.pem",$ca,$ca[1],$input_content);
Test script:
---------------
For the code, $input_content i have passed the input value for detached
type. it shows the Error as,
error:2107507A:PKCS7 routines:PKCS7_verify:no content
it doesnot consider the input content will be in $input_content. It
overwrite the null value for that text file.
For attached signed content ,the above code works fine.
--
Edit bug report at https://bugs.php.net/bug.php?id=55307&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55307&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55307&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55307&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55307&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55307&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55307&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55307&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55307&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55307&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55307&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55307&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55307&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55307&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55307&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55307&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55307&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55307&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55307&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55307&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55307&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55307&r=mysqlcfg