EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Certificate Chains

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#17899
Posted: 10/17/2011 03:56:36
by Fikretcan Erken (Basic support level)
Joined: 08/19/2011
Posts: 9

Hi there,

I am adding validation data to my TElCMSSignature bu using AddCompleteValidationData() and AddCompleteValidationDataItem() functions. Now here's my question. I tried to add a different set of certificate values and references with AddCompleteValidationData(). Since this fuction takes a CertStorage as a parameter, I added all my certificates to a TElMemoryCertStorage. But then I get the following error: Certificate chain is not complete. If I add the root certificate of the ones that I added before, I do not get this error. But I don't want to add their root certificate to my signature. And apparently I can not use AddCompleteValidationDataItem() without using AddCompleteValidationData() first. So, how do I do it?
#17900
Posted: 10/17/2011 04:06:29
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

Quote
But then I get the following error: Certificate chain is not complete.

This is because you chain is incomplete without a root certificate. A chain begins with the certificate of the entity, and each certificate in the chain is signed by the entity identified by the next certificate in the chain. The chain terminates with a root CA certificate.
#17906
Posted: 10/17/2011 06:07:40
by Fikretcan Erken (Basic support level)
Joined: 08/19/2011
Posts: 9

Thanks for the reply. But, again, how can I add the certificates I want to my signature without adding the root CA certificate?
#17907
Posted: 10/17/2011 06:21:05
by Vsevolod Ievgiienko (Team)

You can call AddCompleteValidationDataItem with Cert parameter set to 'null' first and then call it with Cert parameter set to a certificate you want to add.
#17908
Posted: 10/17/2011 06:28:20
by Fikretcan Erken (Basic support level)
Joined: 08/19/2011
Posts: 9

Thank you, it worked.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 808 times

Number of guests: 1, 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!