EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XAdES - CounterSignature

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#9902
Posted: 05/05/2009 01:03:50
by Marcin Brykalski (Priority Standard support level)
Joined: 04/29/2009
Posts: 3

Hello,

I’d like to verify counter signature, so

TElXMLVerifier counterVerifier = new TElXMLVerifier();
counterVerifier.Load(verifier.Signature.QualifyingProperties.UnsignedProperties.UnsignedSignatureProperties.CounterSignatures[0].XMLElement);

then

if (!counterVerifier.ValidateSignature())
{
//error
}

if (!counterVerifier.ValidateReference(null))
{
//error
}

And I’ve got two errors… How should I verify counter signature?

Best regards,
Dachi
#9907
Posted: 05/05/2009 03:58:41
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I’d like to verify counter signature, so

TElXMLVerifier counterVerifier = new TElXMLVerifier();
counterVerifier.Load(verifier.Signature.QualifyingProperties.UnsignedProperties.UnsignedSignatureProperties.CounterSignatures[0].XMLElement);

Countersignature is like a normal signature, so your code should work.
Please, attach the xml document here or post it to the Helpdesk.
Quote
if (!counterVerifier.ValidateSignature())

What value does the counterVerifier.KeyDataNeeded property returns?
#9909
Posted: 05/05/2009 04:24:26
by Marcin Brykalski (Priority Standard support level)
Joined: 04/29/2009
Posts: 3

Hello,

This is value of counterVerifier
[URL=http://iem.pw.edu.pl/~korotkop/stuff/1.JPG]counterVerifier[/URL]

and in attachment compres file [zip] - signature.

Best regards,
Dachi


[ Download ]
#9912
Posted: 05/05/2009 06:57:48
by Dmytro Bogatskyy (EldoS Corp.)

The references are validated ok for me. Did you fill URIDate/URINode properties for references?
The signature and signature timestamp for countersignature are indeed incorrect, for example, this could be if SignatureValue was modified.
Did you create countersignature using SecureBlackbox? With AddCounterSignature method?

P.S. Usually countersignature created using the same key as for main signature, so KeyInfo element is unnecessary. And adding XAdES into countersignature is redundant.
#9932
Posted: 05/06/2009 05:45:29
by Marcin Brykalski (Priority Standard support level)
Joined: 04/29/2009
Posts: 3

Hello,

Ok, here is problem with CounterSignature, not with SBB :-)
Thanks for help!

PS. CounterSignature was produced by third library...

Best regards,
Dachi
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

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