EldoS | Feel safer!

Software components for data protection, secure storage and transfer

verify ref ?, still false :/

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#11341
Posted: 10/14/2009 02:55:58
by Kvetoslav Jansta (Standard support level)
Joined: 05/06/2008
Posts: 56

Hello,

using XMLBlackBox I am trying to verify references xml doc, but stil I get false :(, can you check please, if I use correct progress ?

docDOM := TElXMLDOMDocument.Create;
xmlStream.Position:=0;
docDOM.LoadFromStream(xmlStream);

Verifier := TElXMLVerifier.Create(nil);
Verifier.Load(TElXMLDOMElement(docDOM.DocumentElement));
if Verifier.References.Count>0 then // yes, it is 1
begin
Ref := Verifier.References.Reference[0];
Ref.URINode := docDOM.documentelement;
end;

Verifier.ValidateSignature // is true
Verifier.ValidateReference(Ref) // is false !!! :(


if I try the xml file to drop to another SW reader/checker signature, it say that all is ok.

<MainNode xmlns="">
<Header> ... </Header>
<NextElements>...</NextElements>


<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>oF+c5r3Yx9ezAnCR0IE4YJqab/0=</DigestValue>
</Reference>

zkpSU6......
<KeyInfo>
<X509Data>
<X509Certificate>MIIGbTCCBVWgAw.....</X509Certificate>
</X509Data>
</KeyInfo>

</MainNode>
#11342
Posted: 10/14/2009 03:10:56
by Dmytro Bogatskyy (EldoS Corp.)

Please, attach an XML document here or to Helpdesk

Reply

Statistics

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