1

I'm trying to submit JSON via post on a given URL, but i keep getting the error:

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

I'm using the property SSLVersions to specify the version (sslvTLSv1_2) and i checked manually using Firefox certificate viewer to confirm the version was correct. I also updated OpenSSL with the latest version using their installer as recommended on Delphi's help.

Besides the version, i barely touched any other property from both TIdSSLIOHandlerSocketOpenSSL and TIdHTTP.

I'm trying on Delphi 10.2 Tokyo using Indy built-in basic authentication as a custom header

Are there any other properties i should change or look into in order to succesfully post?

Thank you!

5
  • "I also updated OpenSSL with the latest version using their installer as recommended on Delphi's help" From where, exactly? Jul 11, 2018 at 20:59
  • slproweb.com/products/Win32OpenSSL.html
    – Joe158
    Jul 11, 2018 at 21:00
  • 1
    Make sure you install 1.0.2o. I'm pretty sure Indy does not support 1.1.x yet Jul 11, 2018 at 21:05
  • Thank you very much, i downgraded and everything worked properly! Wasn't aware that Indy didn't support 1.1.0
    – Joe158
    Jul 11, 2018 at 21:15
  • 2
    @DaveNottage "I'm pretty sure Indy does not support 1.1.x yet" - that is correct. FYI, OpenSSL DLLs that are known to be compatible with Indy are available on Indy's Fulgan mirror: indy.fulgan.com/SSL Jul 11, 2018 at 21:42

1 Answer 1

3

As Dave pointed out in comments, I was using the newest version of OpenSSL 1.1.x, which isn't supported by Indy. I downgraded to 1.0.2o, and everything worked out!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.