Error connecting with SSL. error 1409442E:SSL routine:ssl3_read_bytes:tlsv1 alert protocol version | Delphi | Indy

Error 

Error connecting with SSL. error 1409442E:SSL routine:ssl3_read_bytes:tlsv1 alert protocol version | Delphi | Indy


Cause 

There is an issue with INDY version 10 component, where SNI is not used / implemented by default.

Due to this SSL handshake is not happening with the server when SSL certificate is installed on webserver.


Solution 

It is an option for SNI (Server Name Indication) to get correct certificate.

Latest version of Indy supports client-side SNI.


We can fix this with exiting Indy version also but we need to do code change to set SNI explicitly.

Call SSL_set_tlsext_host_name StatusInfoEx (TIdSSLIOHandlerSocketOpenSSL) event with hostname.


Latest version of INDY can be found in, 

https://github.com/IndySockets/Indy.git




No comments:

Post a Comment

Pages