How to use SSL in Remobjects SDK?

Hello all,

somehow I’m unable to locate any concise information as to how to enable SSL in a Remobjects SDK server in Delphi. I need this urgently before I can deliver my current project, the lack of SSL is a show-stopper right now. Can anyone point me in the right direction? My server channel is a TROIndyHTTPServer. All I can find on the internet are a lot of vague descriptions and lots of outdated and/or vulnerable OpenSSL DLL’s.

Hello,
Please look at the following example:
sdk_ssl.zip (803.4 KB)

You can get the Indy Open SSL libraries from here:
http://indy.fulgan.com/SSL/

Hello Vovanl,

the sdk_ssl.zip example works for me with Delphi XE and 2009 if I use the original Indy versions that came with those compilers.

It doesn’t work for me with Delphi XE5, however, and it doesn’t work with the most current version of Indy10 either. Could you please try and reproduce that behaviour?

Hello,
Is there any way to use SSL without using TROIndyHttpServer component? This component does not work properly with uRoInitializedThread unit and it is impossible to use TROIndyHttpServer with Eurekalog (due to “CoInitialize has not been called” exception). Currently I switched from TROIndyHttpServer to TROIpHttpServer component.

You can try to use our new TROWinHttpServer server.

for registering https:// you need to call something like

ROWinHttpServer.Server.AddUrl('https://+:443/');

in OnManualBind event

Thanks, but how can I specify certficate file and CA file?

You can use netsh.exe for this.

Instead of netsh.exe, I recommend you to use GUI utility from Nicolas Dorier, http://httpsysmanager.codeplex.com, where you can register URLs and manage certificates.

1 Like