Closed Louis-Stekhoven-Smith closed 7 years ago
Rails has a bug in the windows environment where initiating an SSH connection with a third party API no SSL certificate is found
This fix has been added and should mean no one else has to deal with it.
But for reference this is the fix. Download cacerts.pem to some directory pref same as ruby script you are firing http://curl.haxx.se/ca/cacert.pem
Add the following to your script:
ENV['SSL_CERT_FILE'] = File.expand_path(File.dirname(__FILE__)) + "/config/cacert.pem"
Has already been resolved just adding bug for historical purposes
Rails has a bug in the windows environment where initiating an SSH connection with a third party API no SSL certificate is found
This fix has been added and should mean no one else has to deal with it.
But for reference this is the fix. Download cacerts.pem to some directory pref same as ruby script you are firing http://curl.haxx.se/ca/cacert.pem
Add the following to your script:
Based on fix described at: https://gist.github.com/fnichol/867550