ruby-on-railsrails-geocoder

Rails 5.1 and Geocoder: SSL_connect returned=1 errno=0 state=error: certificate verify failed


I'm using Geocoder to get coordinates for an adress:

location.rb

geocoded_by :address      
after_validation :geocode

It doesn't save because of the OpsenSSL Error

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

I use Nominatim as API. Did I miss something?

Update

That is an excerpt of the output of 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.

Solution

  • The problem was solved through

    gem update --system