ssl - ruby was-sdk v2 : Seahorse::Client::NetworkingError Exception: SSL_connect -


i downloaded ca-bundle.crt https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt , installed on os x yosemite (10.10 w ruby 2.2.1) local computer @ /usr/local/etc/openssl/certs/ca-bundle.crt, was-sdk v2 not anymore shipped ssl ca bundle

however, executing :

 @s3 = aws::s3::client.new(credentials: aws.config[:credentials] )  puts @s3.list_buckets() 

i error

 *** seahorse::client::networkingerror exception: ssl_connect  returned=1 errno=0 state=sslv3 read server certificate  b: certificate verify failed 

i tried wo success add ca-bundle.cert path aws.config

 aws.config[:ssl_ca_bundle] = '/usr/local/etc/openssl/certs/ca-bundle.crt' 

i tried disable ssl peer verification (for test purpose only)

 aws.config[:ssl_verify_peer] = false 

but in both tests it's still failing ..

i read issues posted topic, none related final v2 version ... 'definitive' solution issue ? feedback

it's os x / homebrew issue ... install openssl w homebrew ca cert located @ : /usr/local/etc/openssl/cert.pem

so need configure :

 aws.config[:ssl_ca_bundle] = '/usr/local/etc/openssl/cert.pem' 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -