EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem X509SerialNumber Bigint or Integer

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#36178
Posted: 03/09/2016 04:48:13
by Eduardo Roldan Garcia (Standard support level)
Joined: 04/07/2015
Posts: 3

Hello , I need help with xml signature Dll BlackBox .

I have sought help in the forum but found nothing on this subject .

When I sign an xml in the field X509SerialNumber me a bigint number appears instead of an integer number as indicated by the XSD.

< ComplexType name = " X509IssuerSerialType ">
< Sequence>
<Element name = " X509IssuerName " type = "string" / >
<Element name = " X509SerialNumber " type = "integer " />
< / Sequence>
< / ComplexType >

And do not validate me

What could be the problem?
Many firms have certified disitntos and so far only has this failed me .

If you can guide me
Thank you
#36179
Posted: 03/09/2016 05:17:53
by Dmytro Bogatskyy (Team)

Thank you for contacting us,

Quote
When I sign an xml in the field X509SerialNumber me a bigint number appears instead of an integer number as indicated by the XSD.

Schema type xs:integer is an integer unbounded value (BigInt value). See for details http://www.w3schools.com/schema/schem...umeric.asp

Quote
And do not validate me

Are you creating signature with XMLBlackbox or validating it?
#36180
Posted: 03/09/2016 05:28:27
by Eduardo Roldan Garcia (Standard support level)
Joined: 04/07/2015
Posts: 3

I am creating signature

-<ds:X509IssuerSerial>

<ds:X509IssuerName>CN=AC FNMT Usuarios, OU=Ceres, O=FNMT-RCM, C=ES</ds:X509IssuerName>

<ds:X509SerialNumber>67459565263197077984898662815367026277</ds:X509SerialNumber>

</ds:X509IssuerSerial>
#36181
Posted: 03/09/2016 05:47:04
by Dmytro Bogatskyy (Team)

Hi,

Quote

I am creating signature
<ds:X509SerialNumber>67459565263197077984898662815367026277</ds:X509SerialNumber>

Yes, it seems a valid BigInt number.

If the validation application fails to validate because of this value, then you can try to disable creating of ds:X509IssuerSerial element using TElXMLKeyInfoX509Data.IncludeDataParams property (see: https://www.eldos.com/documentation/sb...arams.html ) or you can use a certificate with a shorter serial number.
#36182
Posted: 03/09/2016 06:17:33
by Eduardo Roldan Garcia (Standard support level)
Joined: 04/07/2015
Posts: 3

This is the error message that I get to validate the signature .

Element '{ http://www.w3.org/2000/09/xmldsig#}X509SerialNumber ' ' 67459565263197077984898662815367026277 ' is not a valid value of the atomic type ' xs : integer ' .
• Validation failed: DTD not found!

I will try to find a way around the validacion but I see complicated,
#36183
Posted: 03/09/2016 07:47:58
by Dmytro Bogatskyy (Team)

Hi,

Quote
Element '{ http://www.w3.org/2000/09/xmldsig#}X509SerialNumber ' ' 67459565263197077984898662815367026277 ' is not a valid value of the atomic type ' xs : integer ' .
• Validation failed: DTD not found!

It seems that there is an error in third-party validator.

P.S. You can check certificate serial number using TElX509Certificate.SerialNumber property (see: https://www.eldos.com/documentation/sb...umber.html ).
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 2794 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!