Req #31003 [Fbk->NoF]: OpenSSL - no way to get pkcs7 data out of application/pkcs7-mime signed data
| From: | php-bugs at lists dot php dot net | Date: | Sun, 29 Jan 2017 04:22:43 +0000 |
| Subject: | Req #31003 [Fbk->NoF]: OpenSSL - no way to get pkcs7 data out of application/pkcs7-mime signed data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207013@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31003&edit=1
ID: 31003
Updated by: php-bugs@lists.php.net
Reported by: slusarz at curecanti dot org
Summary: OpenSSL - no way to get pkcs7 data out of
application/pkcs7-mime signed data
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: *General Issues
Operating System: Linux
PHP Version: 4.3.10
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2017-01-20 20:26:39] heiglandreas@php.net
Is this still relevant?
------------------------------------------------------------------------
[2004-12-07 07:30:05] slusarz at curecanti dot org
Description:
------------
Enhancement request: Why does the
verify (http://us2.php.net/openssl_pkcs7_verify) command returns a boolean vs. the
string on success and false on error? Currently, there is absolutely no way of getting the data out
of signed block (i.e. application/(x-)pkcs7-mime block with smime-type=signed-data) with PHP
functions.
And, come to think of it, openssl_pkcs_verify doesn't even return a boolean - as indicated by
the documentation - since -1 is a possible return value.
Reproduce code:
---------------
e.g. this message data:
Content-Type: application/x-pkcs7-mime;
smime-type=signed-data;
name="smime.p7m"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7m"
[signed data]
...may verify correctly (openssl_pkcs7_verify() returns true), but there is no way to retrieve the
actual contents of the signed data.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31003&edit=1