EldoS | Feel safer!

Software components for data protection, secure storage and transfer

xades enveloping manifest

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;

Posted: 09/02/2014 07:49:43
by Dmytro Bogatskyy (Team)


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.



Topic viewed 2275 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!