Thread View: borland.public.cppbuilder.internet.socket
12 messages
12 total messages
Started by Hamid
Tue, 11 Apr 2006 12:01
Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Tue, 11 Apr 2006 12:01
Date: Tue, 11 Apr 2006 12:01
5 lines
1206 bytes
1206 bytes
I am using TIdSSLIOHandlerSocketOpenSSL and TIdHTTP to send some data to a server using Post method. When I set the IOHandler of the TIdHTTP an exception occurrs with the following message: "IOHandler value is not valid". How can I solve the problem? I am using BDS2006 with Indy10 and my code is:
outputXml = idHttp->Post("https://172.16.5.17:8443", inputXmlStream);
Thanx
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Remy Lebeau (TeamB)
Date: Tue, 11 Apr 2006 17:02
Date: Tue, 11 Apr 2006 17:02
14 lines
1437 bytes
1437 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message news:443b9ab3$1@newsgroups.borland.com... > When I set the IOHandler of the TIdHTTP an exception occurrs > with the following message: "IOHandler value is not valid". That error can only occur when calling Get() or Post() with an HTTPS URL without first having an TIdSSLIOHandlerSocketOpenSSL assigned to the TIdHTTP beforehand. Did you actually assign the TIdSSLIOHandlerSocketOpenSSL to the TIdHTTP's IOHandler property? Gambit
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Wed, 12 Apr 2006 05:22
Date: Wed, 12 Apr 2006 05:22
6 lines
1088 bytes
1088 bytes
Yes, that was my mistake. But now new exception occurrs with this message: "Could not load SSL library.". My code is: idHttp->IOHandler = idSSLIOHandlerSocketOpenSSL1; Should I set some other settings before using SSL connection?
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Apr 2006 10:12
Date: Wed, 12 Apr 2006 10:12
10 lines
1221 bytes
1221 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message news:443c8ead$1@newsgroups.borland.com... > new exception occurrs with this message: "Could not load SSL library.". Which version and build of Indy are you using? Which version of OpenSSL? Gambit
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Colin B Maharaj
Date: Wed, 12 Apr 2006 10:51
Date: Wed, 12 Apr 2006 10:51
21 lines
1792 bytes
1792 bytes
Hi Hamid, I did a little work with SSL and create a mini secure web server.
To get this working you need to get the correct DLLs that work With
Builder AND the version of Indy you are using.
I am using BCB6 Ent and Indy 9
For Indy to work, you need...
02/11/2003 10:18 AM 696,320 libeay32.dll
02/11/2003 10:18 AM 155,648 ssleay32.dll
2 File(s) 851,968 bytes
At least in my environment.
Place these DLL in the same path as your EXE.
Hamid wrote:
> Yes, that was my mistake. But now new exception occurrs with this message: "Could not load SSL library.". My code is:
>
> idHttp->IOHandler = idSSLIOHandlerSocketOpenSSL1;
>
> Should I set some other settings before using SSL connection?
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Wed, 12 Apr 2006 11:09
Date: Wed, 12 Apr 2006 11:09
3 lines
1013 bytes
1013 bytes
>Which version and build of Indy are you using? Which version of OpenSSL? I am using Indy 10.1.5.
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Wed, 12 Apr 2006 12:26
Date: Wed, 12 Apr 2006 12:26
4 lines
1078 bytes
1078 bytes
Thanx Colin, Would you please let me know exactly from where you downloaded the Indy that you are using? Thanx
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Apr 2006 16:31
Date: Wed, 12 Apr 2006 16:31
13 lines
1482 bytes
1482 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message news:443ce004$1@newsgroups.borland.com... > I am using Indy 10.1.5. You did not answer the second part of my question - which version of OpenSSL are you using? Are you still using Indy's custom DLLs? If so, then I suppose you did not know that the latest Indy 10 snapshot now uses the standardized OpenSSL DLLs instead. The custom DLLs have become obsolete. Gambit
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Apr 2006 16:38
Date: Wed, 12 Apr 2006 16:38
17 lines
1559 bytes
1559 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:443cdb9e$1@newsgroups.borland.com... > To get this working you need to get the correct DLLs that work With > Builder AND the version of Indy you are using. > I am using BCB6 Ent and Indy 9 To elaborate on that - older versions of Indy cannot use the standard OpenSSL DLLs at all. You must download Indy's own custom builds of the DLLs. You can find the download links at http://www.indyproject.org.. The current Indy 10 snapshot no longer uses the custom DLLs. Indy as recently updated to finally use the standard OpenSSL DLLs now. Gambit
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Sat, 15 Apr 2006 05:12
Date: Sat, 15 Apr 2006 05:12
19 lines
1763 bytes
1763 bytes
I wondered that I could not find the files libeay32.dll and ssleay32.dll because I thought they were installed after installing BDS2006. Anyway I downloaded them from http://www.intelicom.si. Here is its readme file: <<<<<<<<<<<<<<<<<<<<<<<<< Readme.txt >>>>>>>>>>>>>>>>>>>>>>>>>> OpenSSL libraries for Indy *********************************** Copyright 2000-2002, Gregor Ibic, gregor.ibic@intelicom.si Intelicom d.o.o. www.intelicom.si This library is tested on Indy 9.0 and higher. <<<<<<<<<<<<<<<<<<<<<<<<< Readme.txt >>>>>>>>>>>>>>>>>>>>>>>>>> According to the readme file it should work with Indy 9.0 and higher. Now if I do not know if it will work after copying to WIN\System32 ? I didn't see why this is not integrated with BDS2006? Thanx,
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Hamid
Date: Sat, 15 Apr 2006 05:29
Date: Sat, 15 Apr 2006 05:29
9 lines
1365 bytes
1365 bytes
I copied both files in WIN\system32 and apparently it is working. But new exception occurrs with the following message:
"Read Timeout" . Moreover, my server is in debug mode. I am tracing my codes.
My code:
idHttp->IOHandler = idSSLIOHandlerSocketOpenSSL1;
outputXml = idHttp->Post("https://domain.com", inputXmlStream);
thanx,
Re: Using TIdSSLIOHandlerSocketOpenSSL
Author: Remy Lebeau (TeamB)
Date: Mon, 17 Apr 2006 17:07
Date: Mon, 17 Apr 2006 17:07
24 lines
2013 bytes
2013 bytes
"Hamid" <hrz_mir@Yahoo.com> wrote in message news:444080c1$1@newsgroups.borland.com... > I wondered that I could not find the files libeay32.dll and ssleay32.dll > because I thought they were installed after installing BDS2006. OpenSSL cannot be shipped with BDS (or Indy) due to export laws governing encryption. That is why Indy's website offered download links to its custom version of OpenSSL separately so that the DLLs could be obtained from a third-party in another country where the laws do not apply. > Anyway I downloaded them from http://www.intelicom.si. As I told you earlier, the latest Indy 10.1.5 snapshot cannot use those custom DLLs anymore. They are obsolete. It now uses the standard DLLs provided by http://www.openssl.org itself. > I didn't see why this is not integrated with BDS2006? Because, by law, it can't be. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads