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. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe <http://vizualize.me/loganathan> -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Tuesday, January 8, 2013 8:40:56 AM UTC, 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. >Well some webservices do require that clients authenticate themselves using a certificate. Does the webservice in question have that requirement? Fred -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/9gsdjUVtp8wJ. For more options, visit https://groups.google.com/groups/opt_out.
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi Loganathan, Do you find a solution? I''m having the same issue, the error only happen for a specific domain. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Nope :( , currently consuming the api without SSL. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe <http://vizualize.me/loganathan> On Thu, Jan 24, 2013 at 9:02 PM, Almir Mendes <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Loganathan, > > Do you find a solution? I''m having the same issue, the error only happen > for a specific domain. > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Thu, Jan 24, 2013 at 9:32 AM, Almir Mendes <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Do you find a solution? I''m having the same issue, the error only happen > for a specific domain.http.auth.ssl.verify_mode = :none -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
I''m trying that but dont''s work. I''m still having the error message. SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.