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
ruby ssl ssl-certificate aws-sdk
erwin Mar 28 '15 at 15:24 2015-03-28 15:24
source share