草泥马的ruby,折腾死人的SSL_connect certificate verify failed
Author:[email protected] Date:
之前一直用ruby编译sass……
然后,新同事来了……说ruby无法安装sass
然后自己去试一下:gem install sass
然后……
ruby SSL_connect returned=1 errno=0 stater=SSLv3 read server certificate B: certificate verify failed (https://rubygems-c
然后百度下……
什么替换https 为http,淘宝的,国外的是……n多一个个替换,一个多个,试过了……
例如
还是,不行,然后继续找谷歌……
去找sll证书……
然后,找了好久……
找打这个:howto-manually-add-trust-cert-to-rubygems.md
https://gist.github.com/luislavena/f064211759ee0f806c88
Hello,
If you reached this page, means you've hit this SSL error when trying to pull updates from RubyGems:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
This error is produced by changes in rubygems.org infrastructure, please keep reading to better understand it.
If you're one of those too long, didn't read just skip to the guide on how to workaround it.
貌似是的……
然后,这个打不开……
AddTrustExternalCARoot-2048.pem.
然后,继续找到这个…………
https://gist.github.com/fnichol/867550
Download the ruby script to your Desktop folder from https://gist.github.com/raw/867550/win_fetch_cacerts.rb. Then in your command prompt, execute the ruby script:
ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb"
Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE
. To set this in your current command prompt session, type:
set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem
To make this a permanent setting, add this in your control panel.
ruby SLL 证书
-----BEGIN CERTIFICATE----- MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h bCBUVF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LunMTA5a mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ= -----END CERTIFICATE-----
然后,还是不对……
然后去 http://guides.rubygems.org/ssl-certificate-update/
gem官网下载sass ,手工安装……
还是…………
,然后,一个中午的时间就此浪费……
有毛用……
然后……
此次,ruby,去死吧……
老子直接nodejs编译sass
……第一个 ,就是npm-sass,但是,自动化,相关东西没有……
https://github.com/sindresorhus/grunt-sass
所以……
看清楚,不是这个
然后配置下……
grunt.initConfig({ sass: { options: { sourceMap: true }, dist: { files: { 'main.css': 'main.scss' } } } });grunt.registerTask('default', ['sass']);
然后,手工了……
去死吧,ruby…………
转载附带链接:https://www.zhoulujun.cn/html/tools/grunt/2016_0331_7730.html
备注:刚刚在自己机器上,手工安装sass成功!
不过还是想说!ruby……要玩这玩意:得先自宫啊!
转载本站文章《草泥马的ruby,折腾死人的SSL_connect certificate verify failed 》,
请注明出处:https://www.zhoulujun.cn/html/tools/Bundler/grunt/2016_0331_7730.html
延伸阅读:
- 使用AngularJS 进行Hybrid App 开发已经有一年多时间了,这里做一
- Yeoman官方教程:用Yeoman和AngularJS做Web应用
- 弄懂javascript的执行机制:事件轮询|微任务和宏任务|定时器
- AngularJS的Provider, Value, Constant, Service, Factory, Decorator的区别与
- 那伤不起的provider们啊~ AngularJS 之 Factory vs Service vs Provider
- AngularJS API之extend扩展对象
- View-Model双向绑定背后的故事~
- 说说Angular $http service中的缓存
- AngularJS 应用身份认证的技巧
- js对象排序
- 过年回家,如何坚持素食?春节餐桌必备的10大素食食材
- 春节该吃什么 盘点全球新年吃素习俗
- 瘦小离家老胖回 食素甩去肉成堆!
- 戒欲:再谈化学阉割与性欲控制
- 补血无须沾血腥,极佳补血蔬果推荐—纯素补气汤药制作
- 色彩空间RGB/CMYK/HSL/HSB/HSV/Lab/YUV基础理论及转换方法:RGB与YUV
- 谁言素味不如荤?素食营养、功能、做法全解以及吃素时机
- JavaScript Object 常用方法总结
- JavaScript OPP编程分析:构造函数实现继承于非构造函数继承
- JS正则表达式详解
- JavaScript类型转换规则说明:加法 ==类型转换说明
- 三元运算相加和判断运算相加那个快?
- 获取Javascript脚本文件的路径:回顾js数组常用操
- JS replace函数正则表达式细讲:获取url参数与重复字母统计
- 图说js中的this——深入理解javascript中this指针