I know this question has been asked a number of times. I seem to have a bit of a different problem. In my situation after the exception is thrown initially it works fine (
For Indy you need a special build of OpenSSL libraries. The default OpenSSL libraries are not suitable for using with Indy.
See also. May be you need to try different versions, until you'll find a suitable one.