Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection with SSL method sslvTLSv1_2
#1
Good afternoon colleagues! 
There is a task to connect to the HTTP server using SSL and certificates. When checking the validity of certificates with OpenSSL commands, the result is successful, and the response shows that TLS1_2 is used. When trying to connect to the server via IE, the result is successful. The server response is there. However, when trying to connect from the program using the IdHTTP and IdSSLIOHandlerSocketOpenSSL components, the connection is not established. Mistake:

Error Connecting with SSL.
error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version. 

Indy version 10.6.1.5182 OpenSSL version "1.1.0j" 20 nov 2018 .

Please tell me what could be the reason? Maybe need to install a more recent version of Indy?
Reply
#2
(04-04-2022, 11:16 AM)Сергей Александрович Wrote: Indy version 10.6.1.5182

10.6.1 is a very old version of Indy. You should upgrade to the latest version from Indy's GitHub repo.

(04-04-2022, 11:16 AM)Сергей Александрович Wrote: OpenSSL version "1.1.0j" 20 nov 2018 .

TIdSSLIOHandlerSocketOpenSSL does not support OpenSSL 1.1.x and later, only 1.0.2 and earlier. For 1.1.x and later, you need to use this SSLIOHandler instead (Note: Work In Progress).

Reply
#3
The Indy version that I am currently using was included in the Delphi XE7 package. Please tell me how to install the new version of Indy (So as not to break anything) :-)
Reply
#4
(04-05-2022, 09:48 AM)Сергей Александрович Wrote: The Indy version that I am currently using was included in the Delphi XE7 package.

XE7 was released over 7.5 years ago.

(04-05-2022, 09:48 AM)Сергей Александрович Wrote: Please tell me how to install the new version of Indy (So as not to break anything) :-)

Installation instructions (just ignore the part about the dev snapshot being hosted on SVN, that is no longer true. It is on GitHub now).

Reply
#5
Thanks. TLS 1_2 is working!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)