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


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

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

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?
Received on Wednesday, 2 July 2003 05:02:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:39 UTC