#50482 [Opn->Csd]: openssl_pkcs7_verify error:0D06B08E
| From: | kalle@php.net | Date: | Wed, 23 Dec 2009 16:29:59 +0000 |
| Subject: | #50482 [Opn->Csd]: openssl_pkcs7_verify error:0D06B08E | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3542@lists.php.net to get a copy of this message | ||
ID: 50482
Updated by: kalle@php.net
Reported By: brubla at seznam dot cz
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows Vista
PHP Version: 5.2.11
-Assigned To:
+Assigned To: kalle
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-12-23 16:29:42] svn@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=292546
Log: Fixed bug #50482 (openssl_pkcs7_verify error:0D07B08E)
------------------------------------------------------------------------
[2009-12-15 15:55:37] brubla at seznam dot cz
Description:
------------
When message.eml contains row longer than 76 characters, it generates
error.
message.eml example:
Content-Type: application/x-pkcs7-mime; name=smime.p7m;
smime-type=signed-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7m"
Content-Description: S/MIME Cryptographic Signed Data
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggPoQ29u
...
AJLxjYfEXR/ltNihtpCr9LQLxH02OBbE8YuhZuOpOeZ6mf+yqgD2AnFuEV0pdX8GTHY+KTe56yzU
2DnMC/2+kWQxs0wz+z/EEluGH+MEIplh1UFiLc/zn6DHbzBORTZNWd94aJzHFyQw50RK3hAw3uLjAAAA
AAAA
If the last row is fixed:
2DnMC/2+kWQxs0wz+z/EEluGH+MEIplh1UFiLc/zn6DHbzBORTZNWd94aJzHFyQw50RK3hAw3uLj
AAAA
AAAA
everything is ok.
Maybe not an error because message is against RFC 2045 which specifies
base64 76 character row.
But messages like this exists and at least good to mention it in
documentation.
Reproduce code:
---------------
openssl_pkcs7_verify(
'message.eml'
PKCS7_NOVERIFY,
'certificate.pem',
array('some_ca_certficates')
'some_ca_certficate',
'content.eml'
);
Actual result:
--------------
openssl_error_string()
returns:
error:0D06B08E:asn1 encoding routines:ASN1_D2I_READ_BIO:not enough
data
error:21078082:PKCS7 routines:B64_READ_PKCS7:decode error
error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50482&edit=1