简体   繁体   English

使用Indy和Delphi 10连接SSL时出错

[英]Error connecting with SSL using Indy and Delphi 10

I'm trying to submit JSON via post on a given URL, but i keep getting the error: 我正在尝试通过帖子在给定的URL上提交JSON,但我一直收到错误:

'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. 我正在使用属性SSLVersions指定版本(sslvTLSv1_2),我使用Firefox证书查看器手动检查以确认版本是否正确。 I also updated OpenSSL with the latest version using their installer as recommended on Delphi's help. 我还根据Delphi的帮助,使用他们的安装程序更新了OpenSSL的最新版本。

Besides the version, i barely touched any other property from both TIdSSLIOHandlerSocketOpenSSL and TIdHTTP. 除了版本,我几乎没有触及TIdSSLIOHandlerSocketOpenSSL和TIdHTTP的任何其他属性。

I'm trying on Delphi 10.2 Tokyo using Indy built-in basic authentication as a custom header 我正在尝试使用Indy内置基本身份验证作为自定义标头的Delphi 10.2 Tokyo

Are there any other properties i should change or look into in order to succesfully post? 是否有任何其他属性我应该改变或调查才能成功发布?

Thank you! 谢谢!

As Dave pointed out in comments, I was using the newest version of OpenSSL 1.1.x, which isn't supported by Indy. 正如Dave在评论中指出的那样,我使用的是最新版本的OpenSSL 1.1.x,Indy不支持。 I downgraded to 1.0.2o, and everything worked out! 我降级到1.0.2o,一切都搞定了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM