Currently the certificate verification code in //net/cert/internal is strict in what sorts of serial number it accepts, adhering to RFC 5280's restriction that they be no longer than 20 bytes:
Certificate users MUST be able to
handle serialNumber values up to 20 octets. Conforming CAs MUST NOT
use serialNumber values longer than 20 octets.
There are some certificates which have serial numbers 21 octets long (these tend to be 20 octets of numerical data, and then a leading 0 to force its interpretation as being non-negative).
For compatibility reasons we would like to temporarily allow such certificates in some circumstances (notably, verifying cast device certs for which some ICAs have such serial numbers).
This can be worked around by adding an option for allowing this during parsing, and enabling it only for these scenarios but not in general.
Comment 1 by eroman@chromium.org
, Jun 20 2016