EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Xades generation using TElXMLSigner

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.
#20564
Posted: 06/20/2012 20:19:04
by eblackmo  (Standard support level)
Joined: 05/09/2012
Posts: 24

So currently I have this
Code

TElXAdESSigner xades = new TElXAdESSigner();
            xades.XAdESVersion = 3; //XAdES version 1.3.2
            xades.SigningTime = DateTime.UtcNow;
   xades.QualifyingProperties.UnsignedProperties.UnsignedSignatureProperties.CertificateValues.EncapsulatedX509Certificates.AddCertificate(certificate, 3);

xades.Generate();


Our clients requirements are the signing time stamp in signed properties and the signing certificate in unsigned properties -> EncapsulatedX509Certificates

When I generate the signature I get the timestamp and not the certificate? How do I set the certificate?
#20567
Posted: 06/21/2012 02:06:17
by eblackmo  (Standard support level)
Joined: 05/09/2012
Posts: 24

I set the form to Extended long electronic signatures with time (XAdES-X-L) and it works. :-)
#20568
Posted: 06/21/2012 02:09:36
by eblackmo  (Standard support level)
Joined: 05/09/2012
Posts: 24

I do have another question though I need to hash the signed properties using sha256 how do I change that?
#20570
Posted: 06/21/2012 03:15:50
by Dmytro Bogatskyy (EldoS Corp.)

Quote
I do have another question though I need to hash the signed properties using sha256 how do I change that?

This reference is generated automatically on signature generation. It could be accessed using ElXMLSigner.Signature.SignedInfo.SigPropRef property.
For example:
Code
ElXMLSigner.GenerateSignature;
..
ElXMLSigner.Signature.SignedInfo.SigPropRef.DigestMethod = SBXMLSec.Unit.xdmSHA256;

Reply

Statistics

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