久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術(shù)文章
文章詳情頁

openssl - win7下安裝sass失敗,提示ruby證書不對?

瀏覽:134日期:2022-09-24 09:10:10

問題描述

步驟:1.

gem sources --remove https://rubygems.org/

2.

gem sources -a https://ruby.taobao.org/Error fetching https://ruby.taobao.org/:SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)

3.

gem sources -l*** CURRENT SOURCES ***

問題出處:http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat

https://gist.github.com/fnichol/867550

I had this same issue while working on a Ruby project. I am using Windows 7 64bit.I resolved this by:Downloading the cacert.pem file from http://curl.haxx.se/ca/cacert.pem.Saved that file to C:/RubyCertificates/cacert.pemThen set my environmental variable 'SSL_CERT_FILE' to 'C:/RubyCertificates/cacert.pem'source: https://gist.github.com/fnichol/867550

證書地址:http://curl.haxx.se/ca/cacert.pem

按照上面這位網(wǎng)友的方法配置了環(huán)境變量如下圖

openssl - win7下安裝sass失敗,提示ruby證書不對?

再次執(zhí)行g(shù)em sources -a https://ruby.taobao.org/報錯依舊openssl - win7下安裝sass失敗,提示ruby證書不對?

有誰遇到過,還是我的環(huán)境變量沒有配置對呢?

問題解答

回答1:

現(xiàn)在淘寶的gem停止更新維護(hù)了,目前是ruby-china維護(hù)。gem source --remove https://ruby.taobao.org/ --add http://gems-china.org/

回答2:

gem source --add http://rubygems.org/gem source -l

回答3:

遇到同樣問題,按照https://gist.github.com/fnichol/867550 的步驟執(zhí)行后順利通過(需要注銷機子)。不過我是添加到系統(tǒng)變量,不知道是不是這個原因。

openssl - win7下安裝sass失敗,提示ruby證書不對?

openssl - win7下安裝sass失敗,提示ruby證書不對?

回答4:

要添加到系統(tǒng)變量,重啟電腦再執(zhí)行切換淘寶源的命令就可以了

標(biāo)簽: Windows系統(tǒng) win7
主站蜘蛛池模板: 景德镇市| 太仆寺旗| 丽水市| 綦江县| 平泉县| 青州市| 西畴县| 临武县| 旺苍县| 白玉县| 思南县| 万载县| 香河县| 内黄县| 巴楚县| 偃师市| 佛教| 通城县| 武宁县| 玛曲县| 泰兴市| 宁都县| 宜宾县| 景泰县| 新巴尔虎左旗| 芦山县| 大姚县| 洱源县| 郴州市| 周口市| 霍山县| 广宗县| 奎屯市| 南郑县| 若尔盖县| 漳平市| 盐池县| 东源县| 晋中市| 微山县| 乌鲁木齐县|