[xmlsec] Invalid data char=B; base=10 on verify

Aleksey Sanin aleksey at aleksey.com
Mon Nov 10 22:55:31 PST 2003


Well, the actually won't work correctly: 0x10 != 10  Most likely in your 
case
you have more information about the cert that is used if search by 
serial number
fails. But it's just an acident :(

Aleksey



Edward Shallow wrote:

>Thanks a million. Turns out that any "hex" characters in the serial number
>(e.g. 1D) will cause the problem. Certs with only numbers in them work.
>
>Thanks again,
>Ed 
>
>-----Original Message-----
>From: xmlsec-admin at aleksey.com [mailto:xmlsec-admin at aleksey.com] On Behalf
>Of Aleksey Sanin
>Sent: November 11, 2003 12:57 AM
>To: Edward Shallow
>Cc: xmlsec at aleksey.com
>Subject: Re: [xmlsec] Invalid data char=B; base=10 on verify
>
>The problem is caused by incorrect conversion of a big integer to a string.
>Instead of using base 10 the function incorrectly used base 16. Thus you'll
>get incorrect numbers sometime. This function is used in writing
><dsig:X509SerialNumber/> thus you got it only when you've used this node in
>your template.
>
>Aleksey
>
>
>
>Edward Shallow wrote:
>
>  
>
>>Thanks,
>>
>>  Is there any specific characters that cause or are affected by this 
>>problem ? I don't get it for many schemas and documents ?
>>
>>I have a demo tomorrow and was wandering if I could work around it ?
>>
>>Ed
>> 
>>
>>
>>    
>>
>
>_______________________________________________
>xmlsec mailing list
>xmlsec at aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>
>_______________________________________________
>xmlsec mailing list
>xmlsec at aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20031110/81c42bd9/attachment.htm


More information about the xmlsec mailing list