Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdSMTP failed to connect using SSL
#3
(01-13-2024, 07:55 AM)BosseB Wrote:
Code:
20240111 17:13:36.590 EXCEPTION: In SendSvnMessage = Error connecting with SSL.
error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version

You are trying to connect using a TLS version that the server does not allow.

(01-13-2024, 07:55 AM)BosseB Wrote: The actual code where the sending is done looks like this:

You are not configuring any TLS versions on the TIdSSLIOHandlerSocketOpenSSL.  By default, it uses only TLS 1.0 (see this ticket).  The server has likely been updated to require TLS 1.1 or even TLS 1.2 now.  So try adding this:

Code:
FSSLHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
FSSLHandler.SSLOptions.SSLVersions := [sslvTLSv1, sslvTLSv1_1, sslvTLSv1_2]; // <-- HERE

Reply


Messages In This Thread
IdSMTP failed to connect using SSL - by BosseB - 01-13-2024, 07:55 AM
RE: IdSMTP failed to connect using SSL - by rlebeau - 01-14-2024, 02:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)