Ruby: SSL_connect SYSCALL returned=5 errno=0 state=unknown state (OpenSSL::SSL::SSLError)

前端 未结 2 1411
青春惊慌失措
青春惊慌失措 2020-12-20 12:09

Variants of this error have been posted all over the place but none of the solutions seem to work for me.

I\'m running ruby 2.2.2p95 (2015-04-13 revision 50295

2条回答
  •  春和景丽
    2020-12-20 12:54

    I use Mechanize, and I was looking for a patch instead of a configuration of the http client instance. This is how I managed to do it:

    OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ciphers] += ':DES-CBC3-SHA'
    

提交回复
热议问题