I get this error when I try to download a file using TIdHTTP component:
First chance exception at $76D8AAF2. Exception class EIdOSSLUnderlyingCryptoError with message
'Error connecting with SSL.
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'.
Process Project1.exe (3684)
I have Indy version 10.6.2.5341 shipped with Embarcadero Rad Studio 10.1 Berlin.
I'm using IdSSLIOHandlerSocketOpenSSL with those options enabled:
[sslvtlsv1, sslvtlsv1_1, sslvtlsv1_2], but still same error, I also have ssl dlls in my application exe directory (libeay32.dll and ssleay32.dll) version 1.0.2u, got it from this post:
How can we connect with a website? Getting SSL error 1409442E
And this code I use to download a file:
const UnicodeString URL = "https://www.rarlab.com/rar/winrar-x64-60b1.exe";
TMemoryStream *ms = new TMemoryStream();
try
{
IdHTTP1->Get(URL, ms);
ms->SaveToFile("E://winrar.exe");
}
__finally
{
delete ms;
}
Update: I upgraded to Indy version 10.6.2.0 and still have the same SSL problem.