EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XAdES countersigning newbie question

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#5771
Posted: 04/08/2008 07:20:42
by Santiago Castaño (Standard support level)
Joined: 04/16/2006
Posts: 155

Hi!,

I'm now starting to play with countersignatures.

As I understand, can I prompt the user to select the signature where the countersignature will be done, and then do this code?:
[code]
if FCounterSign then
Signer.Signature.LoadFromXML(FSignatureNode) //if countersigning, load signature from XML
else
//Initialize Signer with properties (no countersigning

//Initialize XAdES processor with all the values, TSP, CompleteCertificateRefs, RevocationValues, ...

//if countersigning, addcountersignature over Signer
if FCounterSign then
XAdESSigner.AddCounterSign(Signer);

XAdESSigner.Generate;

//...
Signer.UpdateReferencesDigest;
Signer.Sign;
[/CODE}

Is that correct?

Regards
#5772
Posted: 04/08/2008 07:40:02
by Dmytro Bogatskyy (EldoS Corp.)

Quote
As I understand, can I prompt the user to select the signature where the countersignature will be done, and then do this code?

You mean signature was alreaady created and you need to add countersignature?
Then you should load existing signature using ElXMLVerifier and ElXAdESVerifier, check it if needed.
Then use ElXAdESVerifier.AddCounterSignature(CSigner) method.
where CSigner : TElXMLSigner and filled in the same way as normal signature, except you should add reference to SignatureValue of the original signature.

#5773
Posted: 04/08/2008 07:45:39
by Santiago Castaño (Standard support level)
Joined: 04/16/2006
Posts: 155

Ummmm, I see, I'll give it a try. XAdES if far more complex than CAdES :). Many thanks for the tip.

Reply

Statistics

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