tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

Wrong openssl version number? #62

Closed xenonsin closed 6 years ago

xenonsin commented 6 years ago
2017-10-23 18:43:55 -0700 [trace]: #0 accept tcp connection (ssl session not established yet)
2017-10-23 18:43:55 -0700 [trace]: #0 session instances: all=1 closed=0
2017-10-23 18:43:55 -0700 [debug]: #0 starting server
2017-10-23 18:43:55 -0700 [trace]: #0 accepting ssl session
2017-10-23 18:43:55 -0700 [debug]: #0 failed to establish ssl session error_class=OpenSSL::SSL::SSLError error=#<OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=error: wrong version number>
2017-10-23 18:43:55 -0700 [debug]: #0 Shutdown called
2017-10-23 18:43:55 -0700 [debug]: #0 Shutting down :
2017-10-23 18:43:55 -0700 [debug]: #0 Shutdown called

So I get a wrong version number error.. for openSSL? How do I update this?

tagomoris commented 6 years ago

I'm unsure what version / configuration you're using... anyway, try openssl in your host OS, and update (re-build or re-install) your ruby.

xenonsin commented 6 years ago

So this error is pertaining to the SSL_Version as seen here and here. The word "version" is used to describe the ssl protocol being used, either TLS or SSL2 or SSL3.

There error is that the client was attempting to establish a handshake with SSL3 while the server was configured to be TLS. Either changing the client to TLS or the server to SSL3 fixes this issue.

GTron-1729 commented 2 years ago

I'm having this issue. I have provided details for it here: https://github.com/fluent/fluent-bit/issues/5893 @tagomoris can you please check this issue? @xenonsin >>Either changing the client to TLS or the server to SSL3 fixes this issue.: How to do this?