php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55307 openssl_pkcs7_verify - detached process failure
Submitted: 2011-07-28 07:05 UTC Modified: 2013-02-18 00:34 UTC
From: g dot monika at nic dot in Assigned:
Status: No Feedback Package: OpenSSL related
PHP Version: 5.3.6 OS: ubuntu linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
36 - 4 = ?
Subscribe to this entry?

 
 [2011-07-28 07:05 UTC] g dot monika at nic dot in
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. 




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-03 02:08 UTC] philip@php.net
-Status: Open +Status: Feedback
 [2012-12-03 02:08 UTC] philip@php.net
What's the problem here? Is $input_content set to a valid filename?
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 07:01:27 2024 UTC