6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
1/8/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8751] Fatal error: Cannot use string offset as an array in lib/Horde/Crypt/smime.php on line 770
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ .__ .__..__. | [__)[__)| || | | | | |__||__\
Comment
> There is a problem with your certificate. First, why are you using > version 1 of X.509? Version 1 was obsoleted long ago (version 3 is > the up-to-date version). > > Regardless, there seems to be an issue parsing the version/serial > number of that cert. According to the ASN.1 data, the integer value > for the version is 9 bytes long, instead of 1 byte long. > (Additionally, without bcmath, this integer won't be parsed correctly > anyway). For whatever reason, the serial number information is being > ignored. This results in 1 fewer array entry than expected, which > screws up the parsing. > > Trying another ASN.1 PHP parser I found on the web, it fails at the > same location. > > openssl_x509_parse() *does* seem to parse the data correctly, but 1.) > the documentation is listed as "The structure of the returned data is > (deliberately) not yet documented, as it is still subject to change." > (WTF?) and 2.) it did not support ASN.1 decoding extensions data > until PHP 5.2.4.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers