0

Excon が SSL 証明書を見つけることができなくなった AWS サーバーをデプロイしようとすると、最近エラーが発生しました。次のエラーが表示されます。

/Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/ssl_socket.rb:101:in `connect_nonblock': Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file` or `Excon.defaults[:ssl_verify_peer] = false` (less secure). (Excon::Errors::SocketError)
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/ssl_socket.rb:101:in `block in initialize'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/2.1.0/timeout.rb:82:in `block in timeout'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `catch'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `timeout'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/ssl_socket.rb:97:in `initialize'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:410:in `new'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:410:in `socket'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:122:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/mock.rb:42:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/instrumentor.rb:22:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:15:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:15:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:15:in `request_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:265:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/idempotent.rb:12:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:288:in `rescue in request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:225:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/idempotent.rb:12:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:288:in `rescue in request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:225:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/idempotent.rb:12:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/middlewares/base.rb:10:in `error_call'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:288:in `rescue in request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/excon-0.32.1/lib/excon/connection.rb:225:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/xml/sax_parser_connection.rb:36:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/xml.rb:22:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/aws/compute.rb:447:in `_request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/aws/compute.rb:442:in `request'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/aws/requests/compute/describe_security_groups.rb:39:in `describe_security_groups'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/fog-1.21.0/lib/fog/aws/models/compute/security_groups.rb:66:in `all'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/cloud/aws.rb:268:in `describe_security_groups'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/cloud/aws.rb:404:in `sync_security_groups'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/cloud/aws.rb:260:in `setup_security_groups'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/cloud/aws.rb:75:in `before_create_instance'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/thread_safe_proxy.rb:13:in `method_missing'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/recipes/rubber/instances.rb:267:in `block in create_instance'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/recipes/rubber/instances.rb:266:in `create_instance'
from /Users/Jacob/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rubber-2.7.3/lib/rubber/recipes/rubber/instances.rb:230:in `block (2 levels) in create_instances'

この同様のスレッドで提案されているように、openssl.conf ファイルを削除しようとしました。

Excon が SSL ルートを認識しない

しかし、同じエラーがまだ表示されます

他に役立つ情報があれば教えてください。

4

0 に答える 0