connect: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

前端 未结 4 636
栀梦
栀梦 2021-02-13 12:56

I\'m having a terrible time getting SSL to verify a certificate. I\'m completely ignorant on how certificates work so that\'s a major handicap to begin with. Here\'s the error

4条回答
  •  悲哀的现实
    2021-02-13 13:20

    Putting the http.auth.ssl.verify_mode = :none inside the client.request block does not work for me.

    I had to use:

    client = Savon::Client.new do |wsdl, http|
      http.auth.ssl.verify_mode = :none
      wsdl.document = #YOUR_WSDL_URL_HERE
    end
    

    Using Savon 0.9.9 and Ruby 1.9.3-p125

提交回复
热议问题