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: 2013-12-13 07:43 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:
Status: Open Package: OpenSSL related
PHP Version: * OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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:
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 17 03:01:26 2018 UTC