note 95707 deleted from function.openssl-pkcs7-verify by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 Jan 2010 15:10:45 +0000 |
| Subject: | note 95707 deleted from function.openssl-pkcs7-verify by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165081@lists.php.net to get a copy of this message | ||
Note Submitter: Gufo Rosso
----
$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)