How to use SSL Web Services in a Rails application

Posted by Mathieu on Stack Overflow See other posts from Stack Overflow or by Mathieu
Published on 2010-05-10T20:39:36Z Indexed on 2010/05/10 20:44 UTC
Read the original article Hit count: 504

Filed under:
|
|
|
|

Hi,

I having a hard time to consume this webservice https://www.arello.com/webservice/verify.cfc?wsdl in my rails application. I successfully generated the ruby files with the wsdl2ruby.rb but when un run the generated script I get the following error:

at depth 0 - 20: unable to get local issuer certificate
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I also tried to connect via this script but same issue

require 'http-access2'
client = HTTPAccess2::Client.new()
client.ssl_config.set_trust_ca('/arello.cert')
puts client.get('https://www.arello.com/webservice/verify.cfc?wsdl').content

Any ideas? Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about wsdl2ruby