On Tuesday, 8 January 2013 03:40:56 UTC-5, Loganathan Sellappa wrote:
>
> HI All,
>
> I want to consume the SOAP apis using SSL in the SAVON gem, but I am 
> facing the below error while trying to access the soap services. 
>
> client = Savon.client(wsdl: "https://xxx?WSDL";)
> client.operations
>
> HTTPI GET request to xxxxx (curb)
> HTTPI::SSLError: Curl::Err::SSLPeerCertificateError
>
> In the Savon site <http://savonrb.com/version2.html#globals-ssl> I found 
> that options to pass the SSL certificate file, but I didin't understand it, 
> since why do we need to have the ssl certificate to consume the API? Also 
> let me know the way to consume the SOAP service with SSL. 
>

The specific error you're getting is HTTPI complaining that the SSL cert of 
the remote server can't be verified. You'll need to include (at a minimum) 
the certificate of the CA who issued the remote server's key 
in ssl_ca_cert_file (also in the documentation you linked to).
 
--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/QPInEkcq6UsJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to