EldoS | Feel safer!

Software components for data protection, secure storage and transfer

HTTP autentication via certificate for TSP server

Posted: 07/28/2009 10:52:23
by Jan Kokes (Basic support level)
Joined: 07/28/2009
Posts: 1


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
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
Posted: 07/28/2009 11:12:15
by Eugene Mayevski (Team)

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



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