Problem with Savon SSL

I'm struggling to get the Savon gem to connect to one of our servers. I keep getting an error stating that I can not get past ssl. I read a lot of guides and corrections, but none of them work.

Any help appreciated - my Monday will do it if I can get past him :-).

Error:

D, [2011-06-20T09:43:02.002993 #10328] DEBUG -- : Retrieving WSDL from: http://path_to_wsdl:4443/sm/services/mailing/2009/03/02?wsdl D, [2011-06-20T09:43:02.129057 #10328] DEBUG -- : HTTPI executes HTTP GET using the httpclient adapter /.rvm/gems/ruby-1.9.2-p0/gems/httpclient-2.2.1/lib/httpclient/session.rb:276:in `connect': SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: sslv3 alert unexpected message (OpenSSL::SSL::SSLError) 

My code is:

 require 'savon' client = Savon::Client.new "path_to_my_wsdl" client.http.auth.ssl.cert_file = "path/cert.pem" client.http.auth.ssl.cert_key_file = "/path/localhost.key" client.http.auth.ssl.verify_mode = :none client.wsse.credentials "username", "password" client.wsdl.soap_actions 
+6
source share
3 answers

Support Savon 2.x ssl global:

 Savon.client(ssl_verify_mode: :none) 

and

 Savon.client(ssl_version: :SSLv3) 
+2
source

I'm not sure you did this already, but when I had to use Savon for the project, it seemed incredibly useful to make sure that the Soap server was working, as I thought it should be with SoapUI (http: //www.eviware. Com / ) Then you can infer the SOAP request from the two and compare.

+1
source

There is an error processing Ruby net / http using SSL verification .

Try to get the SSL version to bypass the error:

 client.http.auth.ssl.sock.ssl_version="SSLv3" 
0
source

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


All Articles