• home > tools > Bundler > grunt >

    草泥马的ruby,折腾死人的SSL_connect certificate verify failed

    Author:[email protected] Date:

    rRuby SSL_connect returned=1 errno=0 stater=SSLv3 read server certificate B: certificate verify failed (h…… marshal data too short………… 遇到的有木有……

    之前一直用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多一个个替换,一个多个,试过了……

    例如

    blob.png

    还是,不行,然后继续找谷歌……

    去找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
    MB4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nXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvC
    Nr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX
    c4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a
    mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
    -----END CERTIFICATE-----

    然后,还是不对……


    blob.png

    然后去 http://guides.rubygems.org/ssl-certificate-update/

    gem官网下载sass ,手工安装……

    还是…………

    ,然后,一个中午的时间就此浪费……

    有毛用……

    然后……

    此次,ruby,去死吧……

    老子直接nodejs编译sass

    ……第一个 ,就是npm-sass,但是,自动化,相关东西没有……

    https://github.com/sindresorhus/grunt-sass

    所以……

    blob.png

    看清楚,不是这个

    blob.png

    然后配置下……

    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成功!

    blob.png

    不过还是想说!ruby……要玩这玩意:得先自宫啊!




    转载本站文章《草泥马的ruby,折腾死人的SSL_connect certificate verify failed 》,
    请注明出处:https://www.zhoulujun.cn/html/tools/Bundler/grunt/2016_0331_7730.html

    延伸阅读: