EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How do I include certificates when creating XML signature?

First of all, to include a signing key or certificate to the signature you need to set TElXMLSigner.IncludeKey property to true (this is default value).

If you need to include just one certificate to the signature, take these steps:

  1. Set Certificate property of TElXMLKeyInfoX509Data instance to reference the certificate which will be used for signing.
  2. Ensure that TElXMLKeyInfoX509Data.IncludeDataParams property includes xkidX509Certificate option (it is included by default)

To include a complete certificate chain or its part do the following:

  1. Add all needed certificates (including the one being used for signing) to the instance of TElMemoryCertStorage class
  2. Set Certificate property of TElXMLKeyInfoX509Data instance to reference the certificate which will be used for signing. This should be the certificate taken from the instance of TElMemoryCertStorage class
  3. Set CertStorage property of TElXMLKeyInfoX509Data instance to reference the above mentioned instance of TElMemoryCertStorage class
  4. Ensure that TElXMLKeyInfoX509Data.IncludeDataParams property includes xkidX509Certificate option (it is included by default)

If you are creating XAdES signature, you need to set TElXAdESSigner.SigningCertificates property to reference the above mentioned instance of TElMemoryCertStorage class.

Return to the list

|

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!