如何制作Ruby';s SOAP::RPC::驱动程序是否使用自签名证书?

如何制作Ruby';s SOAP::RPC::驱动程序是否使用自签名证书?,ruby,soap,ssl,Ruby,Soap,Ssl,在对使用自签名证书的服务器进行soap调用时,如何防止此异常 require "rubygems" gem "httpclient", "2.1.2" require 'http-access2' require 'soap/rpc/driver' client = SOAP::RPC::Driver.new( url, 'http://removed' ) client.options[ 'protocol.http.ssl_config.verify_mode' ] = OpenSSL::S

在对使用自签名证书的服务器进行soap调用时,如何防止此异常

require "rubygems"
gem "httpclient", "2.1.2"
require 'http-access2'
require 'soap/rpc/driver'
client = SOAP::RPC::Driver.new( url, 'http://removed' )
client.options[ 'protocol.http.ssl_config.verify_mode' ] = OpenSSL::SSL::VERIFY_NONE
client.options[ 'protocol.http.basic_auth' ] << [ url, user, pass ]

at depth 0 - 18: self signed certificate
/opt/local/lib/ruby/1.8/soap/streamHandler.rb:200:in `send_post': 415:  (SOAP::HTTPStreamError)
    from /opt/local/lib/ruby/1.8/soap/streamHandler.rb:109:in `send'
    from /opt/local/lib/ruby/1.8/soap/rpc/proxy.rb:170:in `route'
    from /opt/local/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call'
    from /opt/local/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call'
需要“rubygems”
gem“httpclient”,“2.1.2”
需要“http-access2”
需要“soap/rpc/驱动程序”
client=SOAP::RPC::Driver.new(url,'http://removed' )
client.options['protocol.http.ssl\u config.verify\u mode']=OpenSSL::ssl::verify\u NONE
client.options['protocol.http.basic_auth']尝试:


安全问题。危险的但它会起作用的,是的。(ps-不是我)这是一些非常危险的建议!
client.options["protocol.http.ssl_config.verify_mode"] = nil