Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IdSMTP failed to connect using SSL
#4
(01-13-2024, 09:34 AM)BosseB Wrote: LATER
I made the test now by rebuilding the mailer application using Lazarus 2.2.4/Fpc 3.2.2 on Windows 10 x64.

But still the same SSL error when I make a commit on Subversion.
So the rebuild with a more up-to-date version of Indy10 did not help to correct the problem.

What can I do now?
Is there some extra logging I can check?

(01-14-2024, 02:58 AM)rlebeau Wrote:
(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

THANK YOU SO MUCH!!! Heart   Smile

This solved the problem and the emails are now getting through!
So now I can get to bed without worrying how to get it to work or invent a different method somehow.
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 BosseB - 01-14-2024, 11:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)