Click to See Complete Forum and Search --> : opensll in php, trying to veryify a file without verifying the signature , and giving


niha
04-10-2007, 04:04 AM
opensll in php, trying to veryify a file without verifying the signature , and giving me always an error -1


$filename="Documento-85.pdf.p7m";

$content=file_get_contents($filename);
//$result=openssl_pkcs7_verify($filename, $flags , PKCS7_NOVERIFY );
$result=openssl_pkcs7_verify($content,PKCS7_NOSIGS);
echo $result;