Search code examples
delphiremobjects

Combining Delphi & remobjects via SSL


I'm in the development of a server client solution. The server is written in delphi and the client written in c#, and we're using RemObjects 5 (xml webservice thingy) to perform the communication.

Now, I've got a working soluting using HTTP, but of course we would like to use HTTPS using.

I've looked at OpenSSL earlier, but it seems to be a pain to actually get a reasonable recent version to work together with Delphi.

I would like suggestions for 3rd party software, libraries, or even hints, tutorials and references. It's more or less anything goes short of abandoning remobjects and delphi.

Necessary requirements: Delphi 2006, 2007 or 2010. Visual studio 2005 / 2008 or 2010.

Much appreciated.


Solution

  • If you are using RemObjects SDK, you can use OpenSSL by using one of the server channels that are implemented using Indy, like TROIndyHTTPServer; this channel uses Indy internally, and provides access to the internal Indy component via its IndyServer property.

    You can assign a TIdSSLIOHandlerSocketOpenSSL to TROIndyHTTPServer.IndyServer.IOHander property to use SSL in your communication.

    You need OpenSSL compiled for Indy, which you can download the latest version from this link:

    http://blog.digivendo.com/2009/11/openssl-v0-9-8l-for-indy/