Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting with SSL. EOF was observed that violates the protocol #119

Open
jfgreco opened this issue May 2, 2018 · 2 comments
Open

Comments

@jfgreco
Copy link

jfgreco commented May 2, 2018

raised exception class EIdOSSLConnectError with message 'Error connecting with SSL. EOF was observed that violates the protocol'.

My application is raising the above error. I can't seem to find what exactly is causing it. We are using Indy to make the connection.

@rpottsoh
Copy link

rpottsoh commented May 2, 2018

Are you using Windows 7? I have come across similar symptoms when dealing with REST and GitHub. Please review this comment that I posted in exercism/windows-installer#33. For me, the upshot was that Windows is trying to use an older version of TLS (likely 1.0) and the REST server doesn't support that version. My comment contains instructions from Microsoft on how to update settings in the registry to allow Windows to support newer versions of TLS.

Disclaimer: I am not using any code from this REPO. My experience stems from using the REST Client libraries provided by Delphi 10.2.x.

I hope there is some value for you in this, I just re-read your original comment, your error message is different than what I dealt with recently...

@ghost
Copy link

ghost commented Jan 26, 2023

The problem is here: https://github.com/fabriciocolombo/delphi-rest-client-api/blob/master/src/HttpConnectionIndy.pas#L114

You need to use Indy 10 in Delphi 7 and use sslvSSLv23 here, not sslvTLSv1. But you need to have the correct versions of libeay32.dll and ssleay32.dll from OpenSSL in your project folder.

If you need to use both HTTP and HTTPS in your project, you can make this setting a published property on the RestClient component and pass it as an argument to the THttpConnectionIndy.Create constructor, but that's a dirty trick. Sorry for my English.

2023-01-26_212827

openssl_libs.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants