Doc #55307 [Opn->Fbk]: openssl_pkcs7_verify - detached process failure

From: Date: Mon, 03 Dec 2012 02:08:32 +0000
Subject: Doc #55307 [Opn->Fbk]: openssl_pkcs7_verify - detached process failure
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9245@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55307&edit=1 ID: 55307 Updated by: philip@php.net Reported by: g dot monika at nic dot in Summary: openssl_pkcs7_verify - detached process failure -Status: Open +Status: Feedback Type: Documentation Problem Package: OpenSSL related Operating System: ubuntu linux PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: What's the problem here? Is $input_content set to a valid filename? Previous Comments: ------------------------------------------------------------------------ [2011-07-28 07:05:17] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55307&edit=1

« previous php.doc.bugs (#9245) next »