nilesh shinde wrote:
When I tried the given code, I got following error.
Project Test.exe raised exception class EIdOSSLConnectError with
message 'Error connecting with SSL. EOF was observed that violates
the protocol'.
That means the server is closing the socket connection on its end,
which likely means it doesn't like your SSL/TLS handshake so it is
rejecting the connection. And it sounds like it is not sending back a
TLS alert to describe the reason for the rejection (TLS version
mismatch, no matching ciphers, etc) before closing the connection.
In the WireShark traces what I found is, in 'Client Hello' packet TLS
version is still v1.0.
Look again. The handshake itself is in a particular version (usually
in an SSLv2 compatible format), but it should indicate that a higher
version is supported. When enabling multiple TLS versions, Indy uses
an SSLv23 handshake, which allows for dynamic version negotiation.
--
Remy Lebeau (TeamB)
Connect with Us