1

I'm trying to install ruby using RVM in Cygwin, but I'm getting the error:

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html

i've looked at this question: Curl Certificate Error when Using RVM to install Ruby 1.9.2

but unfortunately the solution doesn't work for me because curl-config --ca doesn't show anything. I checked with curl-config --configure and it seems the package was compiled with the --without-ca-bundle

how can I work around this?

Community
  • 1
  • 1
Daniel
  • 1,515
  • 3
  • 10
  • 13

3 Answers3

4

this is the same question. open ~/.rvm/scripts/fetch and edit every "fetch_command=..." line to have a -k option.

Community
  • 1
  • 1
event_jr
  • 17,467
  • 4
  • 47
  • 62
1

It seems curl in cygwin isn't shipped with its CA certificates bundle. You can download it at http://curl.haxx.se/ca/cacert.pem then use:

CURL_CA_BUNDLE=</path/to/cacert.pem> rvm install <ruby>
13k
  • 289
  • 2
  • 6
0

If you don't have ~/.rvm directory then do which rvm and then edit [rvm-path]/../scripts/fetch. Each curl command need -k. Ie:

...

  fetch_command="curl -k -x${rvm_proxy} -f -L --create-dirs -C - " # -s for silent

else

  fetch_command="curl -k -f -L --create-dirs -C - " # -s for silent
...

This worked for Cygwin.

Nick Craig-Wood
  • 52,955
  • 12
  • 126
  • 132
Jason R
  • 2,085
  • 20
  • 12