EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Reference List

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#13315
Posted: 05/14/2010 08:15:26
by Ercan POLAT (Standard support level)
Joined: 05/14/2010
Posts: 3

Hello. I am new to signing XML documents and evaluating your product. I am trying sign an xml file according to a sample xml. My Problem
Code

   <ds:SignedInfo Id="SignedInfo">
      <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
      <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
      <ds:Reference URI="">
         <ds:Transforms>
            <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
         </ds:Transforms>
         <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
         <ds:DigestValue>hodFa1AQDWYlDV8hjNhSMfFWpIgt/DVblLNuwle9Fls=</ds:DigestValue>
      </ds:Reference>
      <ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#SignedProperties">
         <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
         <ds:DigestValue>kmfWcQPUMIxF0iWfQxI0md7bMwY=</ds:DigestValue>
      </ds:Reference>
   </ds:SignedInfo>


I think second reference added by XADES signer and I have to add an "ID", replace the "type" attrib and change digest method to sha256. I tried to use XMLReferenceList of signer but it doesnt count second reference. How can I access this second reference.

Thank you.
#13322
Posted: 05/14/2010 12:28:25
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I think second reference added by XADES signer and I have to add an "ID", replace the "type" attrib and change digest method to sha256. I tried to use XMLReferenceList of signer but it doesnt count second reference. How can I access this second reference.

Yes, it is.
This reference generated automatically on signing process. It could be accessed using ElXMLSigner.Signature.SignedInfo.SigPropRef property (this property wasn't prepared for "public", and it was added just in case...)
For example:
Code
ElXMLSigner.Sign; // generates Signature structure
...
ElXMLSigner.Signature.SignedInfo.SigPropRef.DigestMethod := xdmSHA256;
ElXMLSigner.Signature.SignedInfo.SigPropRef.ID := 'idX';
ElXMLSigner.Signature.SignedInfo.SigPropRef.RefType := '';
#13336
Posted: 05/17/2010 01:14:44
by Ercan POLAT (Standard support level)
Joined: 05/14/2010
Posts: 3

Thanks for fast reply. It works. I will order your product after all tests completed.
#13450
Posted: 05/25/2010 10:16:02
by Ercan POLAT (Standard support level)
Joined: 05/14/2010
Posts: 3

Hello Again

I am trying to remove login prompt of USB token by using PKCS11CertStorage. My C# test program throws "SBUtils.EElCertStorageError: PKCS#11 provider DLL function returned fatal error (error code is 7)". Delphi test program throws "PKCS#11 provider dll doesnt export all required functions(error code is 0)"

Can you help me ? Thanks in advance.

Usb token Manufacturer address : http://www.akiskart.com.tr/eng/gelistiriciler.html
Usb token Manufacturer sample program (C++): http://www.akiskart.com.tr/dosyalar/akis_testp11.zip
zip includes header file of pkcs dll.
#13452
Posted: 05/25/2010 11:15:00
by Ken Ivanov (EldoS Corp.)

Please re-check that you are passing the correct driver DLL to the TElPKCS11CertStorage (the distribution might contain certain helper DLLs that are not PKCS#11 drivers by themselves).

If you are sure that the correct one is passed, could you please post it to the Helpdesk for investigation?

Please also create new forum topics for new issues. This will help other users to resolve similar issues much faster (with the use of forum search).
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

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