softlayer/softlayer-api-ruby-client — Issue #3: softlayer_api gem OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed):
Author: snasir
Created: 2012-02-23 10:36:48+00:00
State: open

I am using softlayer_api gem but when i called any method like "getOpenTickets" after

creating SoftLayer::Service object i get this exception:

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

my code that is executed in dashboard controller is:

def index

begin

account_service = SoftLayer::Service.new("SoftLayer_Account",

:username => "sl221517a",

:api_key =>
"25f38a342079c07f4336543a0fccc54ee8755cb92b53cd78d0ed4aa1d9961b85")

account = account_service.getOpenTickets

rescue Exception => exception

puts "Unable to retrieve account information: #{exception}"

end
end

i also require related libraries as well

require 'rubygems'

require 'softlayer_api'

require 'pp'

require 'openssl'