Ruby was-sdk v2: Seahorse :: Client :: NetworkingError Exception: SSL_connect

I downloaded ca-bundle.crt from https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt and installed it on my OS X Yosemite (10.10 w Ruby 2.2.1) local computer on / usr / local / etc / openssl / certs / ca -bundle.crt since was-sdk v2 no longer comes with SSL CA bundle

However, the execution:

@s3 = Aws::S3::Client.new(credentials: Aws.config[:credentials] ) puts @s3.list_buckets() 

I get an error

  *** Seahorse::Client::NetworkingError Exception: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed 

I tried to successfully add the path ca-bundle.cert to my Aws.config

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

I also tried disabling ssl peer check (for testing purposes only)

  Aws.config[:ssl_verify_peer] = false 

But in both tests it still does not work.

I read some questions published on this topic, but none of them are related to the final version of v2 ... what could be the "final" solution to this problem? thanks for the feedback

0
ruby ssl ssl-certificate aws-sdk
Mar 28 '15 at 15:24
source share
1 answer

This is an OS X / Homebrew problem ... install openssl w Homebrew CA cert located at /usr/local/etc/openssl/cert.pem

so I need to configure it:

  Aws.config[:ssl_ca_bundle] = '/usr/local/etc/openssl/cert.pem' 
+2
Mar 28 '15 at 18:40
source share



All Articles