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.0nContent-Disposition: attachment;
filename="smime.p7m"nContent-Type: app
lication/x-pkcs7-mime;
name="smime.p7m"nContent-Transfer-Encoding:
base64nn$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-pkcs
7-verify.php
Edit -- https://master
.php.net/note/edit/70016
Del: integrated -- h
ttps://master.php.net/note/delete/70016/integrated
Del: useless -- http
s://master.php.net/note/delete/70016/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/70016/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/70016
Reject -- https://mast
er.php.net/note/reject/70016
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|