2007-04-06

ADG (IndySSL)

ADG (IndySSL): "SIMPLE INDY 9/10 SSL CLIENT AND SERVER EXAMPLES

Written by Ralph Sickinger, Best Manufacturing Practices Center of Excellence (BMPCOE)

e-mail: ralph @ bmpcoe.org

SSL CLIENT:
This program is a simple TCP Client that makes an SSL connection on port 3000. To connect to a server, enter the IP address of the server in the box labeled 'Host:', and then press the 'Connect' button. Once a connection has been established, the client displays any text received from the server in the memo area. To send text to the server, enter it in the available edit box, and then press [enter].

SSL SERVER:
This program establishes a TCP Server that listens for SSL connections on port 3000. When a connection is received, the server responds with 'Hello', and then listens for any other lines of text sent from the client. When a line is received, it is echoed to the screen as well as back to the client.

Note: in order to run this program, you must have libeay32.dll and ssleay32.dll installed where the application can find them (either in the Windows System32 folder, or in the same folder as the application itself. These files can be downloaded from: http://indy.fulgan.com/SSL/ The server also requires that the certificate files (sample.crt, sample.key, and sampleRoot.pem) be available in the same folder as the excutable."

0 comments: