title: connect: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
body: <p>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 I get when running the script:</p>
  
  <pre><code>c:/Ruby191/lib/ruby/1.9.1/net/http.rb:611:in `connect': SSL_connect returned=1 e
  rrno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
  ::SSL::SSLError)
  </code></pre>
  
  <p>Here's the relevant code:</p>
  
  <pre><code>client = Savon::Client.new order_svc
  
  request = client.create_empty_cart { |soap, http|
    http.auth.ssl.cert_file = 'mycert.crt'
    http.auth.ssl.verify_mode = :none
    http.read_timeout = 90
    http.open_timeout = 90
    http.headers = { "Content-Length" =&gt; "0", "Connection" =&gt; "Keep-Alive" }
    soap.namespaces["xmlns:open"] = "http://schemas.datacontract.org/2004/07/Namespace"
    soap.body = {
        "wsdl:brand" =&gt; brand,
        "wsdl:parnter" =&gt; [
          {"open:catalogName" =&gt; catalogName, "open:partnerId" =&gt; partnerId }
        ] }.to_soap_xml
  
        }
  </code></pre>
  
  <p>Any help is appreciated.  </p>