Il seguente codice restituisce il seguente errore: OpenSSL :: SSL :: SSLError: SSL_connect SYSCALL restituito = 5 errno = 0 stato = SSLv3 leggere server ciao AOpenSSL :: SSL :: SSLError: SSL_connect SYSCALL restituito = 5 errno = 0 stato = SSLv3 server di lettura ciao A
require 'net/https'
uri = URI.parse("https://<server>.com")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.ssl_version = 'SSLv3'
http.get(uri.request_uri)
Qualche idea sul perché? Ho provato tutto quanto menzionato in tutte le altre domande, ancora senza fortuna.
- Rubino 1.9.3p484 (2013/11/22 revisione 43786) [x86_64-darwin13.3.0]
- OpenSSL 0.9.8y 5 Feb 2013
Aggiornamento I
Ho provato il seguente:
- Ruby 2.0.0p353 (2013-11-22 revisione 43784) [x86_64-darwin13.3.0]
- OpenSSL 1.0.1i 6 ago 2014
Aggiornamento II
- SSL_VERSION Costretto a: TLSv1_2
Ancora nessuna fortuna.
Aggiornamento III
Va bene, ecco il codice finale - grazie a Steffen (vedi risposta di seguito):
require 'net/https'
uri = URI.parse("https://<server>.com")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.ssl_version = :TLSv1
http.ciphers = ['RC4-SHA']
http.get(uri.request_uri)
Dubito che la mia domanda sarà rilevante per chiunque altro dato che era correlata su un server errato configurato a distanza.
E 'stato utile per me :) – davispuh
Anche sul/r/asknetsec https://www.reddit.com/r/AskNetse c/comments/64ulgg/what_would_be_a_secure_ssl_configuration_for_the/ – Dorian