EldoS | Feel safer!

Software components for data protection, secure storage and transfer

xades signature verification

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#10201
Posted: 05/28/2009 03:53:07
by Szymon Piskula (Basic support level)
Joined: 02/05/2009
Posts: 17

Thanks for replay,

In case of my sidned document, as i look at it in simplesinger
SigPolicyID/Identidfier has two values:
Qualifier = "OIDAsURI"
#text = "testing"

As i understad the value of
Code
XAdESSigner.PolicyId.SigPolicyHash.DigestValue


should be calculated from "testing" using TElHashFunction

Do i understand it correctly ?
I attach my signed xml just in case.


[ Download ]
#10202
Posted: 05/28/2009 04:12:13
by Dmytro Bogatskyy (EldoS Corp.)

Quote
should be calculated from "testing" using TElHashFunction

In your case the "testing" should be an URI like "http://test.com/some_policy_doc" (because you specified OIDAsURI)
#10203
Posted: 05/28/2009 05:16:20
by Szymon Piskula (Basic support level)
Joined: 02/05/2009
Posts: 17

Thanks again!

Ive been analyzing documents accepted by sigillum and it seems that they dont have those two properties:
SigningTime
SigningPoliscyIdentifier

in the SignedSignatureProperties. The only property that they have is

SigningCertificate.


I couldn find any property of TElXAdESSigner allowing me to exclude those two properties - is it possible ?

When i set
Code
XAdESSigner.PolicyId = null;


i get an exception. Not initializing time resolves the issue - it stops to appear in that section.
#10206
Posted: 05/28/2009 12:26:23
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I couldn find any property of TElXAdESSigner allowing me to exclude those two properties - is it possible ?

If you do not set anything to XAdESSigner.PolicyId, PolicyId element will not be included if XAdES version is 1.1.1 or XAdES form is XAdES_EPES only. Other forms require this element.
However you can exclude it by setting (after Generate method):
XAdESSigner.QualifyingProperties.SignedProperties.SignedSignatureProperties.SignaturePolicyIdentifier.SignaturePolicyImplied = true;

As for the SigningTime, set it to DateTime.MinValue.
It should be so in the XAdESSigner constructor. I'll fix this.

Reply

Statistics

Topic viewed 7096 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!