Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: SSL problems
| Subject: | Re: SSL problems |
| Posted by: | "Vassilis Papadopoulos" (vp..@forth-crs.gr) |
| Date: | Wed, 10 Oct 2007 18:28:56 |
hi to all
we finally managed to resolve this issue, without
having to install the developer snapshot of indy.
i understand that many solutions have been posted
about the ssl problem, but i never managed to find
a complete walkthrough of what has to be done.
i think this might be it:
use the build in delphi 2007 indy and the latest
installation of openssl from
http://www.slproweb.com/products/Win32OpenSSL.html.
it doesn't really matter if you are going to use the
"light" or "recommended for developers" version.
create a form with a TIdHTTP (eg, name it http) and a
TIdSSLIOHandlerSocketOpenSSL component. assign the iohandler
of TIdHTTP to be TIdSSLIOHandlerSocketOpenSSL and set any
other parameters you might think you need. in your main program's
uses clause, put the "IdSSLOpenSSLHeaders" library to use.
in the event you want to trigger the ssl connection put the
following code:
IdSSLOpenSSLHeaders.Load;
http.ReadTimeout:=0;
http.ConnectTimeout:=0;
showmessage(http.Get('https://any.securesite.com'));
of course you can manage whether or not to load the ssl headers
from the action that the tidhttp is going to take (http or https)
and also the unload (IdSSLOpenSSLHeaders.unload) of the
ssl headers.
hope this will help some people...
Antonis-Vassilis
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message
news:xn0fc3gvnka9mc4005@newsgroups.borland.com...
> Antonis Tsourinakis wrote:
>
>> We use delphi 2007 for win 32 and the Indy components ver
>> 10.1.5 (included in Delphi).
>
> I recall having similar problems and in my case had to get the
> then-current version of Indy (later than what was shipped with Delphi).
> I know you said you failed to get the development snapshot but I think
> you need to resolve that problem first.
>
> I'm successfully using the OpenSSL dlls with a version of 0.9.8.5
>
> --
> -Mike (TeamB)
none