W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 2003

The range of X509SerialNumber

From: Andrew Fan <Andrew.Fan@sun.com>
Date: Wed, 02 Jul 2003 17:03:55 +0800
Message-ID: <3F029FFB.109@sun.com>
To: w3c-ietf-xmldsig@w3.org

Hi,

In the xmldsig-core or RFC3275,  X509SerialNumber is defined as "integer"

<complexType name="X509IssuerSerialType"> 
     <sequence> 
       <element name="X509IssuerName" type="string"/> 
       <element name="X509SerialNumber" type="integer"/> 
     </sequence>
</complexType>

As I know, serialNumber in a certificate is a ASN1 "INTEGER", which may 
be a very large value, such as "123456789012345678901234567890", which 
can not assigned to a general "int" or "long" variable. In XML Schema 
specification, I do not find the evidence that a "integer" value can 
hold BIG INTEGER like the above example. So I think the type of 
 X509SerialNuber may be "base64Binary".

Am I right or wrong?
Andrew
Received on Wednesday, 2 July 2003 05:02:54 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:17 GMT