EldoS | Feel safer!

Software components for data protection, secure storage and transfer

add timestamp to DC Web project

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#30864
Posted: 10/01/2014 22:34:40
by Sébastien LOPEZ (Basic support level)
Joined: 10/01/2014
Posts: 4

Hi,

I would like to add timestamp token in the DC web project.
I read all subject in forum but i don't understand how to do this.

Can you help me ? do you have a sample code for that ?

My company is ready to purchased your library but i'm not sure i can add timestamp in DC project.

best regard

Sébastien,
#30865
Posted: 10/01/2014 22:40:52
by Sébastien LOPEZ (Basic support level)
Joined: 10/01/2014
Posts: 4

An another question.

When my company wil purchase licence, we can modify the java applet to translate into french language ?
#30867
Posted: 10/02/2014 00:42:49
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Quote
When my company wil purchase licence, we can modify the java applet to translate into french language ?

Yes you can as you will get source code of the applet.

Quote
I would like to add timestamp token in the DC web project.

Could you clarify what kind of documents you need to sign.
#30875
Posted: 10/02/2014 16:42:07
by Sébastien LOPEZ (Basic support level)
Joined: 10/01/2014
Posts: 4

Hi Vsevolod,

In a first time, i would like to sign and timestamp a pdf file in a web asp.net application.

Sign work fine in DC module but when i tried to add timestamp to the sign, I have an error.

In Result.aspx, i modified FinishSigning() like this :

Code
            TElDCAsyncState state = new TElDCAsyncState();
            MemoryStream input = new MemoryStream(signature);
            state.LoadFromStream(input, SBDCXMLEnc.__Global.DCXMLEncoding());

            TElPDFDocument doc = new TElPDFDocument();
            TElPDFAdvancedPublicKeySecurityHandler handler = new TElPDFAdvancedPublicKeySecurityHandler();
            handler.SignatureType = TSBPDFPublicKeySignatureType.pstPKCS7SHA1;

            TElHTTPSClient HTTPClient = new TElHTTPSClient();
            TElHTTPTSPClient TSPClient = new TElHTTPTSPClient();
            TSPClient.HTTPClient = HTTPClient;

            TSPClient.HashAlgorithm = SBConstants.Unit.SB_ALGORITHM_DGST_SHA1;
            TSPClient.URL = "http://myserver";

            handler.TSPClient = TSPClient;
            
            FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.ReadWrite);


My error message is : Bad asynchronous state


In web.config, i set signature type pades like this

Code
    <add key="SignatureType" value="PAdES"/>


but i have this message :
Code
SBPAdES.EElPDFAdvancedPublicKeySecurityHandlerError: No signing certificate



I don't known if i'm in the good way.
I must declare my timestamp server in a result.aspx ? or in presigner.cs ?

Thanks for your help.

Sébastien,
#30876
Posted: 10/02/2014 16:45:05
by Sébastien LOPEZ (Basic support level)
Joined: 10/01/2014
Posts: 4

I think my timestamp server work because i can add timestamp token with adobe reader.
#30878
Posted: 10/03/2014 03:10:05
by Vsevolod Ievgiienko (EldoS Corp.)

The above mentioned exception occurs because you need to put client certificate to an instance of TElMemoryCertStorage and assign it to TElPDFAdvancedPublicKeySecurityHandler.CertStorage property.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

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