EldoS | Feel safer!

Software components for data protection, secure storage and transfer

HTTP autentication via certificate for TSP server

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#10680
Posted: 07/28/2009 10:52:23
by Jan Kokes (Basic support level)
Joined: 07/28/2009
Posts: 1

Hi

We have PDFBlackbox and SSLBlackBox packages.

I was testing couple of tools for timestamping and in some cases -
username and password (eventually certificate) is needed to log on onto TSP
provider server. Can I make this via your TSP classes ?

I have written code to get timestamp from TimeStamp authority server using
SBHTTPTSPClient.TElHTTPTSPClient cl
SBHTTPSClient.TElHTTPSClient httpcl

commented part is how i suggest the username/password http autentication may be done, but i don't know how to go via certifice. Can you help me please?

// httpcl.RequestParameters.Username = "";
// httpcl.RequestParameters.Password = ""; //Alternatively you can use the URL in standard notation: http://username:password@host:port/path/to/file.ext
#10681
Posted: 07/28/2009 11:12:15
by Eugene Mayevski (EldoS Corp.)

You can use either OnCertificateNeededEx event of the HTTP client, or it's ClientCertStorage property.

Search the samples in \Samples\SSLBlackbox folder for "OnCertificateNeededEx".

Use of ClientCertStorage is trivial - put the client certificate (and optionally it's CA certificate) to the instance of TElMemoryCertStorage and assign this instance to ClientCertStorage property.


Sincerely yours
Eugene Mayevski

Reply

Statistics

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