php.net |  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
Votes:7
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 16 = ?
Subscribe to this entry?

 
 [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:
---------------------------------------
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] wez@php.net
I will look into this
 [2010-12-20 13:56 UTC] jani@php.net
-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] wez@php.net
-Status: Assigned +Status: Open
 [2013-12-13 07:40 UTC] wez@php.net
Turns out I didn't have time for this in the past 10 years
 [2013-12-13 07:43 UTC] wez@php.net
-Status: Assigned +Status: Open -Assigned To: wez +Assigned To:
 [2022-04-07 14:48 UTC] ilutov@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ilutov
 [2022-04-07 14:48 UTC] ilutov@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC