note 95707 added to function.openssl-pkcs7-verify
| From: | GufoRosso at osu1 dot php dot net | Date: | Sun, 17 Jan 2010 06:16:45 +0000 |
| Subject: | note 95707 added to function.openssl-pkcs7-verify | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165046@lists.php.net to get a copy of this message | ||
$pa = "full path of file";
$ca = array();
$ca[0] = $pa."certificate.cer"; //ca root
$ca[1] = $pa."up_1.pem"; // ca signed of ca root
// ....
$sign_cert_file = $pa."test22.crt";
$tmpfile = $pa."signed.txt";
echo $status = openssl_pkcs7_verify($tmpfile, PKCS7_BINARY, $sign_cert_file,$ca);
The $ca contain all certificate tree structure
(certificate of CA, certificate of signed CA, $sign_cert_file contain a certificate used in signed
file)
----
Server IP: 69.147.83.197
Probable Submitter: 109.114.18.62
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkcs7-verify.php
Edit -- https://master.php.net/note/edit/95707
Del: integrated -- https://master.php.net/note/delete/95707/integrated
Del: useless -- https://master.php.net/note/delete/95707/useless
Del: bad code -- https://master.php.net/note/delete/95707/bad+code
Del: spam -- https://master.php.net/note/delete/95707/spam
Del: non-english -- https://master.php.net/note/delete/95707/non-english
Del: in docs -- https://master.php.net/note/delete/95707/in+docs
Del: other reasons-- https://master.php.net/note/delete/95707
Reject -- https://master.php.net/note/reject/95707
Search -- https://master.php.net/manage/user-notes.php