Re: Help for openssl_pkcs7_verify function
| From: | Stut | Date: | Mon, 17 Mar 2008 22:16:10 +0000 |
| Subject: | Re: Help for openssl_pkcs7_verify function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271696@lists.php.net to get a copy of this message | ||
On 17 Mar 2008, at 21:34, Carlo Carbone wrote:
I need help for this function to verify a p7m file . The funcion return always error value ( -1 ) this is the sintax that I use to verify the sign on the file openssl_pkcs7_verify("prova.p7m", PKCS7_BINARY ,"prova.pdf", array("c:\cert.pem") ); I 'm a winXP user and the path of PHP is place in the system path as mentioned in the setup note why it don't work ? where is the problem ? somebody could help me ?Just guessing since I'm not familiar with the function, but on a basic PHP syntax level you need to escape the \... openssl_pkcs7_verify("prova.p7m", PKCS7_BINARY ,"prova.pdf", array("c:\\cert.pem") ); -Stut -- http://stut.net/