“Certificate verify failed” OpenSSL error when using Ruby 1.9.3

后端 未结 7 1398
無奈伤痛
無奈伤痛 2020-12-01 08:20

I\'m using Ruby 1.9.3p0 on Mac OS 10.6.8 (installed using rvm). When I attempt to create a new Rails application using an application template hosted on GitHub, with this (f

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 08:51

    Openssl certification directory is /usr/lib/ssl/ in Debian. So, following three lines was enough for me,

    $ cd /usr/lib/ssl/
    $ sudo curl -O http://curl.haxx.se/ca/cacert.pem
    $ sudo mv cacert.pem cert.pem
    

提交回复
热议问题