Rails 5.1 和地理编码器:返回SSL_connect=1 errno=0 状态=错误:证书验证失败



我正在使用地理编码器获取地址的坐标:

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。我错过了什么吗?

更新

这是捆绑安装输出的摘录

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.

问题已通过

gem update --system

相关内容

最新更新