Override http.ssl_version so that TLSv1 does not work

I am trying to force Ruby net/httpand net/httpsuse TLSv1instead SSLv3.

I read many articles that say you can do this with one of:

http.ssl_version = :TLSv1

http.ssl_version = "TLSv1"

but none of them work, I keep getting this error:

SSL_connect returned = 1 errno = 0 state = SSLv3 read server hi A: sslv3 handshake rejection

I am using ruby ​​ruby ​​1.9.3p551, rails 2.3.18. Any help would be really appreciated, thanks!

+4
source share

Source: https://habr.com/ru/post/1568109/


All Articles