EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Upgrade form XAdES-T to XAdES-A

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#35420
Posted: 01/07/2016 04:47:56
by AGM  (Standard support level)
Joined: 12/18/2015
Posts: 18

Hi,

Sorry, I was mistaken on my last reply.

Quote

It's strange. So, the code below fails for you?
Code
Dim t As String = ""
SBXMLUtils.Unit.ExtractIdFromLocalURI("#SignedProperties-1841429929", t)


This works, setting s = "SignedProperties-1841429929", but the next line:
Code
Ref.URINode = SBXMLUtils.Unit.FindElementById(signatureNodes(0), s)

Sets Ref.URINode = Nothing.

Regards!
#35421
Posted: 01/07/2016 04:58:49
by Dmytro Bogatskyy (EldoS Corp.)

Hi,

I see, please move the XAdESSigner.QualifyingProperties.SignedProperties.ID property before calling Signer.GenerateSignature() method in your code. This method generates signature structure, also it generates the reference to SignedProperties element and its Id attribute, if it is not set. So, if you change the Id attribute after this method, then you will get an invalid URI in the reference that points to SignedProperties element.
#35422
Posted: 01/07/2016 07:36:24
by AGM  (Standard support level)
Joined: 12/18/2015
Posts: 18

Hi,

Thanks for your help. It is working now.

Regards!

Reply

Statistics

Topic viewed 2054 times

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




|

Back to top

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

Got it!