Good luck,
Stephane
On 02 Apr 2002, "Ian Patterson" <i...@grange-systems.co.uk> wrote in
news:3ca9bd5e_1@dnews:
> I am looking for a Delphi component to support communications in HTTPS
> SSL(v3)
> I am using Delphi5 Prof on W2K
>
> Any reccomendations ?
> Regards
>
> Ian Patterson
>
>
>
"Stephane Grobety" <gro...@fulgan.com> wrote in message
news:Xns91E4B51EA3D02...@207.105.83.65...
1/ Pay a rather high price for the initial product, plus pay for each
upgrade (add that to the price of the new delphi version)
2/ Put up with the fact that you don't have any source code and often
little information about what's going on (actually, there is a way to
purshase the source code, for a hefty price).
3/ Stand the ridiculous copy protection scheme (I once had to rebuild my
applicatio in a hurry because my custommers where suddently seeing the
"This is an unregistered component" warning message).
On the other hand, their technical support is rather helpful and it
wouldn't be such a bad product if it wasn't for the way it is marketed.
Good luck,
Stephane
Here is some help.
Here is how to connect to https. There is a demo named HTTPClient that is
very weak on how to do it.
NOTE: You absolutely have to have the OpenSSL DLLs in your system32
directory. These dlls are available from
http://www.intelicom.si/download.php?op=viewdownload&cid=1 basically they
are the cipher, encoding and decoding algorithims that do the calculations
for various security methods. (they are transparent to you)
Two important components are used TidHTTP and TIdSSLIOHandlerSocket in this
demo a third is the Freeze component do not worry about it It just provides
application.processmessages so the app won't hang.
One problem is the three Tedit boxes are blank when you run the program
because they are not set in the
INI file. I had trouble figuring out what stuff needed loaded on my system.
To make matters worse I did not know what to put in them. See the below ini
file.
To find the files that go in there -- they end with *.PEM. Go to the START
button and Click on Search for files globally *.PEM. You will find them
somewhere in IndyDemo under Delphi. I moved them over to a directory named
MyDir in this example.
The URL I set to my https site.
The ini file must be located in the same directory where the httpcilent.exe
is located.
When you BUILD the program and run the executable the form will come up
correctly with the proper PEM files in it.
Here is the ini file
SSLClient.INI file contains the following Modified contents.
[SSLClient]
URL=https://secure.mailbox.net//Login?Domain=yoursite.com
Root Certificate=C:\MyDir\IndyDemo\CAcert.pem
Personal Key=C:\MyDir\IndyDemo\IndyClientKey.pem
Personal Certificate=C:\Mydir\IndyDemo\IndyClientCrt.pem
Method=2
VerifyPeer=0
VerifyNoPeerCert=0
VerifyOnce=0
CertDepth=2
If you have this ini file correct simply run the program and the fields
should pick up the INI file contents then just click on the GET button.
Also, I added a button named Disconnect
with the following code onBtnClick
HTTP.DisconnectSocket;
Now I ran the program and it goes thru correctly and connects per SSL specs.
I have not completed the modifications to the HTTPClient code I suspect now
I will have to add the
SMTP mail component with an Message component somehow.
I don't know exactly how to send the email at this time but I know the above
steps are required before you can send the email data. When this demo
program runs it is sitting there connected and waiting for a reply response
message that contains the email data.
If you figure out how to do the rest let me know.
When I figure it out I will post it here.
Joe Carron
Eastern Software Corporation
jo...@eastsoft.com
"Ian Patterson" <i...@grange-systems.co.uk> wrote in message
news:3ca9bd5e_1@dnews...