I'm getting this error:
Not a duplicated SSL_connect returned=1 errno=0 state=error: certificate verify failed OS El Capitan
While using this code to make API calls:
require 'json'
require 'net/http'
url = 'https://touch-rate.com/o/analytics/dashboard?api_key='+ENV["API_KEY"]+'&app_id='+ENV["APP_ID"]%>
resp = Net::HTTP.get_response(URI.parse(url))
dashboard = JSON.parse(resp.body)
My server was recently changed to a secure server and since then it has been throwing the above error.
I've have tried every multiple options on Stackoverflow, but nothing seems to work, can somebody help me with why I'm getting this error?
Thank you