Securing Indy Network Connections
This topic shows how to add TLS/SSL security support to your Indy network connections.
- 32-bit Windows:
- 64-bit Windows:
Extract the contents of the downloaded archive and locate the following library files:
Copy these files into the folder where Appmethod generates your application executable. For example, into
<Project Folder>/Win32/Debug for 32-bit Windows.
For Windows, before you can run your application on a remote machine or you can distribute your application to your users, you must change the deployment configuration of your application to include these library files into the path of your application executable:
- Select Project > Deployment.
- Open the combo box on top of the Deployment Manager, and select the target platform (32-bit Windows or 64-bit Windows) under All configurations.
- Click .
- Select the required library files that you previously downloaded, and click OK.
For Mac OS X and Android, your application does not need to meet any prerequisite for TLS/SSL support. The required OpenSSL library is available by default on those operating systems.
For iOS, see Creating an iOS App, OpenSSL Support to configure your application for TLS/SSL encryption support.
For other platforms see OpenSSL libraries.
Implementing TLS/SSL Support on Your Indy Client
To secure an Indy network connection, drag a TIdSSLIOHandlerSocketOpenSSL component into the Form Designer and double-click the
IOHandler property of your Indy client component in the Object Inspector so that your new
TIdSSLIOHandlerSocketOpenSSL component is selected as input/output handler.
Alternatively, you can secure the network connections of your Indy client from code:
Client.IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create;
Client->IOHandler = new TIdSSLIOHandlerSocketOpenSSL();
You can now use your client to perform secure requests to a server that supports TLS/SSL encryption using the HTTPS protocol. For example, to retrieve "http://www.example.com" using TLS/SSL encryption, get "https://www.example.com" instead with your client.