|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22978 (openssl_pkcs7_verify) pem saved into variable
Submitted: 2003-03-31 05:47 UTC Modified: 2022-04-07 14:48 UTC
Avg. Score:3.9 ± 1.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: busia at tiscali dot it Assigned: ilutov (profile)
Status: Closed Package: OpenSSL related
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2003-03-31 05:47 UTC] 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:
openssl_pkcs7_verify("/home/busia/mail_firmata_mittente_cambiato", PKCS7_DETACHED, "php://stdout");

But I receive this warning:
PHP Warning:  openssl_pkcs7_verify() [<a href='http://www'>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.

Andrea Busia


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-31 05:52 UTC] 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 06:34 UTC]
I will look into this
 [2010-12-20 13:56 UTC]
-Package: Feature/Change Request +Package: OpenSSL related -Operating System: Redhat 7.0 +Operating System: * -PHP Version: 4.3.2RC1 +PHP Version: *
 [2013-12-13 07:40 UTC]
-Status: Assigned +Status: Open
 [2013-12-13 07:40 UTC]
Turns out I didn't have time for this in the past 10 years
 [2013-12-13 07:43 UTC]
-Status: Assigned +Status: Open -Assigned To: wez +Assigned To:
 [2022-04-07 14:48 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: ilutov
 [2022-04-07 14:48 UTC]
While still valid, this has been open for a long time with no action. We're migrating away from, if this is still desired please create a new issue on GitHub.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Aug 07 23:05:44 2022 UTC