EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PDFBlackbox - Sign with timestamp

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.
#11117
Posted: 09/22/2009 08:51:20
by Qualisoft CQPD (Standard support level)
Joined: 03/13/2007
Posts: 55

In the PDFBlackbox\Signer example (SBB 7.2)
there is a text box to request the URL
of the server timestamp.
My server's timestamp needs authentication (HTTP post with 7 parameters).
Can you help me to identify which events/methods must
be used for this authentication?

thanks
Luis Ricardo
#11118
Posted: 09/22/2009 09:36:47
by Eugene Mayevski (EldoS Corp.)

I think that your server works in the following way: you POST your request using HTTP, and get a cookie in response. Then the timestamping request is sent via HTP and the cookie is enclosed in HTTP request.

What you can do is post your parameters using TElHTTPSClient (you have an instance of it anyway), grab the cookie, then put this received cookie to RequestCookies property. Next sign the PDF document.

This is just a guess, and probably you need to verify this with your server administration.


Sincerely yours
Eugene Mayevski
#11119
Posted: 09/22/2009 11:05:18
by Qualisoft CQPD (Standard support level)
Joined: 03/13/2007
Posts: 55

My server works in the following way: I POST the request using HTTP (post multipart/form-data), and get an file XXXXXX.tsp with the timestamp in response

In this case, perhaps the best way is to use the class ElCustomTSPClient.

Do you agree?
#11120
Posted: 09/22/2009 11:51:39
by Eugene Mayevski (EldoS Corp.)

You can take TElFileTSPClient and handle OnTimestampNeeded event.


Sincerely yours
Eugene Mayevski
#11121
Posted: 09/22/2009 13:07:15
by Qualisoft CQPD (Standard support level)
Joined: 03/13/2007
Posts: 55

I take TElFileTSPClient and handle OnTimestampNeeded event.
Why requestStream parameter has 51 bytes?
My server's time stamp expects to receive the hash to be signed (20 bytes).
#11122
Posted: 09/22/2009 13:33:42
by Qualisoft CQPD (Standard support level)
Joined: 03/13/2007
Posts: 55

another question:

Delegate Sub TSBTimestampNeededEvent(ByVal Sender As Object, ByVal RequestStream As System.IO.Stream, ByVal ReplyStream As System.IO.Stream, ByRef Succeeded As Boolean)

the parameter ByVal ReplyStream should be ByRef ReplyStream

Luis Ricardo
#11123
Posted: 09/22/2009 14:03:37
by Eugene Mayevski (EldoS Corp.)

Quote
luis ricardo wrote:
I take TElFileTSPClient and handle OnTimestampNeeded event.
Why requestStream parameter has 51 bytes?
My server's time stamp expects to receive the hash to be signed (20 bytes).


Nope. It's a well-formed TSP request. If your server doesn't accept TSP request, will it produce valid TSP response?

Quote
luis ricardo wrote:
the parameter ByVal ReplyStream should be ByRef ReplyStream


Also no. The object is already allocated, you just write to it.


Sincerely yours
Eugene Mayevski
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

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