Esri / geoservices-ruby

Ruby library for interacting with Geoservices
Apache License 2.0
12 stars 17 forks source link

Update SSL version #7

Open neilberkman opened 4 years ago

neilberkman commented 4 years ago

Using the 0.10 version of the gem I get: ​

OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: tlsv1 alert protocol version)

when connecting to https://services.arcgis.com. This PR fixes the issue by updating from:

http.ssl_version = :TLSv1

to:

http.ssl_version = :TLSv1_2
Sjors commented 4 years ago

I get the same error. d1ffff489626b0f795db4f3d4833d2768f0624e0 fixes it for me.

Sjors commented 4 years ago

Note that the released 0.1.0 gem is from a fork by @MatzFan.