note 70016 added to function.openssl-pkcs7-verify

From: Date: Fri, 29 Sep 2006 21:39:27 +0000
Subject: note 70016 added to function.openssl-pkcs7-verify
Groups: php.notes 
Request: Send a blank email to php-notes+get-117852@lists.php.net to get a copy of this message
As someone already mentioned in the previous comment it didn't work for me until I passed in that hidden sixth argument and also explicitly add the mime header into the $in_filename contents. (I am using PHP5) $data = file_get_contents($in_filename); file_put_contents($in_filename, "MIME-Version: 1.0\nContent-Disposition: attachment; filename=\"smime.p7m\"\nContent-Type: app lication/x-pkcs7-mime; name=\"smime.p7m\"\nContent-Transfer-Encoding: base64\n\n$data"); openssl_pkcs7_verify("$in_filename", $flag, "$out_filename.cert", array($path_to_cert), $path_to_cert, $out_filename)); ---- Server IP: 216.194.113.175 Probable Submitter: 216.145.54.158 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-pkcs7-verify.php Edit -- https://master.php.net/note/edit/70016 Del: integrated -- https://master.php.net/note/delete/70016/integrated Del: useless -- https://master.php.net/note/delete/70016/useless Del: bad code -- https://master.php.net/note/delete/70016/bad+code Del: spam -- https://master.php.net/note/delete/70016/spam Del: non-english -- https://master.php.net/note/delete/70016/non-english Del: in docs -- https://master.php.net/note/delete/70016/in+docs Del: other reasons-- https://master.php.net/note/delete/70016 Reject -- https://master.php.net/note/reject/70016 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117852) next »