Req #22978 [Opn->Csd]: (openssl_pkcs7_verify) pem saved into variable
| From: | ilutov@php.net | Date: | Thu, 07 Apr 2022 14:48:52 +0000 |
| Subject: | Req #22978 [Opn->Csd]: (openssl_pkcs7_verify) pem saved into variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-240763@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: ilutov@php.net
Reported by: busia at tiscali dot it
Summary: (openssl_pkcs7_verify) pem saved into variable
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: OpenSSL related
Operating System: *
PHP Version: *
-Assigned To:
+Assigned To: ilutov
Block user comment: N
Private report: N
New Comment:
While still valid, this has been open for a long time with no action. We're migrating away from
bugs.php.net, if this is still desired please create a new issue on GitHub.
Previous Comments:
------------------------------------------------------------------------
[2013-12-13 07:40:53] wez@php.net
Turns out I didn't have time for this in the past 10 years
------------------------------------------------------------------------
[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