Rails 5.1和Geocoder:SSL_connect返回= 1 errno = 0状态=错误:证书验证失败

时间:2018-09-26 17:15:33

标签: ruby-on-rails rails-geocoder

我正在使用Geocoder获取地址的坐标:

location.rb

geocoded_by :address      
after_validation :geocode

由于OpsenSSL错误而无法保存

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate
verify failed):

我使用Nominatim作为API。我错过了什么吗?

更新

那是bundle install输出的摘录

Using geocoder 1.5.0

Bundle complete! 22 Gemfile dependencies, 82 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

1 个答案:

答案 0 :(得分:0)

问题已通过

解决
gem update --system