#22978 [Opn->Asn]: (openssl_pkcs7_verify) pem saved into variable

From: Date: Mon, 31 Mar 2003 12:34:08 +0000
Subject: #22978 [Opn->Asn]: (openssl_pkcs7_verify) pem saved into variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36806@lists.php.net to get a copy of this message
ID: 22978 Updated by: wez@php.net Reported By: busia at tiscali dot it -Status: Open +Status: Assigned Bug Type: Feature/Change Request Operating System: Redhat 7.0 PHP Version: 4.3.2RC1 -Assigned To: +Assigned To: wez New Comment: I will look into this Previous Comments: ------------------------------------------------------------------------ [2003-03-31 05:52:29] busia at tiscali dot it The problem is also with the input data: I have input data (email message) in a variable and i have to write them to a file to use this function. ------------------------------------------------------------------------ [2003-03-31 05:47:37] busia at tiscali dot it Is it possible to add an option into "openssl_pkcs7_verify" to save the store the certificate into a variable instead of into a file? I tried: --------------------------------------- ob_start(); openssl_pkcs7_verify("/home/busia/mail_firmata_mittente_cambiato", PKCS7_DETACHED, "php://stdout"); $pem=ob_get_contents(); ob_end_clean(); --------------------------------------- But I receive this warning: --------------------------------------- PHP Warning: openssl_pkcs7_verify() [<a href='http://www .php.net/function.openssl-pkcs7-verify'>function.openssl-pkcs7-verify</a>]: sign ature OK, but cannot open php://stdout for writing in /home/busia/prova2.php on line 5 --------------------------------------- Writing the file and the reding it seems a waste of resources. Thanks Andrea Busia ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22978&edit=1

« previous php.bugs (#36806) next »