Req #22978 [Asn->Opn]: (openssl_pkcs7_verify) pem saved into variable
| From: | wez@php.net | Date: | Fri, 13 Dec 2013 07:40:53 +0000 |
| Subject: | Req #22978 [Asn->Opn]: (openssl_pkcs7_verify) pem saved into variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183286@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=22978&edit=1
ID: 22978
Updated by: wez@php.net
Reported by: busia at tiscali dot it
Summary: (openssl_pkcs7_verify) pem saved into variable
-Status: Assigned
+Status: Open
Type: Feature/Change Request
Package: OpenSSL related
Operating System: *
PHP Version: *
Assigned To: wez
Block user comment: N
Private report: N
New Comment:
Turns out I didn't have time for this in the past 10 years
Previous Comments:
------------------------------------------------------------------------
[2003-03-31 06:34:08] wez@php.net
I will look into this
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=22978&edit=1