EldoS | Feel safer!

Software components for data protection, secure storage and transfer

xades enveloping manifest

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#30582
Posted: 09/02/2014 04:52:19
by Fernando Del Canio (Standard support level)
Joined: 06/24/2014
Posts: 14

Now yes:

signer.IncludeKey = true;

also i have included the last line

_certificadoX509.LoadFromFileAuto(fileKey, psw);
_keyX509.Certificate = _certificadoX509;
_keyX509.IncludeKeyValue = true;

Correct?
#30583
Posted: 09/02/2014 07:49:43
by Dmytro Bogatskyy (EldoS Corp.)

Quote

also i have included the last line
keyX509.IncludeKeyValue = true;

Include KeyValue property is not necessary, if you include a certificate data itself (IncludeDataParams has xkidX509Certificate value).
When XAdES is validated a signer certificate is searched (based on its CertID from SignerCertificate element) in all available certificates (from KeyInfo element, from XAdES CompleteCertificateRefs and CertificateValues elements and etc.). You can use TElXAdESSigner/TElXAdESVerifier.ExtractAllCertificates method to get the list of all available certificates.
If you don't include a signer certificate in the signature, you can handle TElXAdESSigner/TElXAdESVerifier.OnCertificateNeeded event and provide a missing certificate.

Reply

Statistics

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