certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

redis集群配置中

>gem sources -a https://ruby.taobao.org/

Error fetching https://gems.ruby-china.org/:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

出现了这个问题。。在百度上找了好多资料都不行;

https://stackoverflow.com/questions/10728436/opensslsslsslerror-ssl-connect-returned-1-errno-0-state-sslv3-read-server-c这里说的好高端的样子也不行。。然后在某论坛看到一个弱弱的回答:‘是不是时间设置有问题’

然后果断在系统里面输入date。。果然日期显示有问题

>ntpdate time.windows.com

>date         //再次查看时间没问题了

>gem sources -a https://ruby.taobao.org/   //再次输入

https://ruby.taobao.org/ added to sources   //成功

转载于:https://www.cnblogs.com/cyq632694540/p/7128163.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
looking in indexes: https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/ could not fetch url https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/flask/: there was a problem confirming the ssl certificate: httpsconnectionpool(host='nexuscimgmt.sgp.dbs.com', port=8443): max retries exceeded with url: /nexus/repository/pypi-all/simple/flask/ (caused by sslerror(sslcertverificationerror(1, '[ssl: certificate_verify_failed] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) - skipping could not fetch url https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/pip/: there was a problem confirming the ssl certificate: httpsconnectionpool(host='nexuscimgmt.sgp.dbs.com', port=8443): max retries exceeded with url: /nexus/repository/pypi-all/simple/pip/ (caused by sslerror(sslcertverificationerror(1, '[ssl: certificate_verify_failed] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) - skipping warning: retrying (retry(total=4, connect=none, read=none, redirect=none, status=none)) after connection broken by 'sslerror(sslcertverificationerror(1, '[ssl: certificate_verify_failed] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /nexus/repository/pypi-all/simple/flask/ warning: retrying (retry(total=3, connect=none, read=none, redirect=none, status=none)) after connection broken by 'sslerror(sslcertverificationerror(1, '[ssl: certificate_verify_failed] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /nexus/repository/pypi-all/simple/flask/ warning: retrying (retry(total=2, connect=none, read=none, redirect=none, status=none)) after connection broken by 'sslerror(sslcertverificationerror(1, '[ssl: certificate_verify_failed] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /nexus/repository/pypi-all/simple/flask/ warning: retrying
06-28
### 回答1: 这是一个关于 SSL 证书验证失败的错误提示,可能是由于证书链中存在自签名证书导致的。因此,无法从 https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/flask/ 和 https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/pip/ 获取数据。系统正在尝试重新连接,但仍然无法成功。 ### 回答2: 这是一条错误消息,显示在使用pip安装Flask或Pip时存在SSL证书的问题。错误显示在访问https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/网址时,无法获取Flask和Pip的URL,因为存在一个SSL证书验证问题。SSL证书是一种用于加密数据传输的安全协议,可以确保数据在传输过程中不被窃取或被篡改。但是,如果SSL证书验证失败,数据的安全性可能会受到威胁。 在这种情况下,SSL证书验证失败可能是由于证书本身存在问题引起的。错误消息指出,SSL证书链中存在自签名证书,这可能会导致验证失败。为了解决这个问题,应该检查证书链是否完整,并且证书是否来自已知的和受信任的SSL证书颁发机构(CA)。在这种情况下,最好联系站点管理员或SSL证书颁发机构进行检查和解决问题。 另一个可能的解决方案是使用--trusted-host选项安装软件包。这将忽略SSL证书验证,但会增加一些安全风险。在使用此选项之前,应该评估风险并确定该选项是否适合您的环境。最后,如果您的环境需要高度安全性,则可能需要更改SSL证书验证设置或配置来达到更严格的安全级别。 ### 回答3: 这是一个关于Python包管理器pip在访问DBS银行私有仓库时的SSL证书验证错误的问题。首先,这个错误提示说明在使用pip下载某些包时出了问题,因为pip默认从https连接下载包,而目标网站的SSL证书验证错误导致pip无法建立连接。这个问题可以有两种可能的解决方法。 首先,可以尝试忽略SSL证书检查,让pip仅仅去下载需要的包,这样可以通过以下命令来忽略证书检查: ``` pip install --trusted-host nexuscimgmt.sgp.dbs.com -i https://nexuscimgmt.sgp.dbs.com:8443/nexus/repository/pypi-all/simple/<package_name> ``` 其中,需要将`<package_name>`替换为需要下载的包的名称。另外,`--trusted-host nexuscimgmt.sgp.dbs.com`选项表示信任该主机的证书,这样就能跳过证书验证的步骤继续下载包了。 如果仍然无法解决问题,第二种解决方法是更新ca-certificates包,这是Python安装时的一组根证书,可以保证验证SSL证书和认证链的准确性。这个问题可以在Linux系统上使用以下命令更新ca-certificates包: ``` sudo update-ca-certificates ``` 使用这个命令可以更新旧的证书和检查证书的路径,然后再次尝试使用pip下载包。 虽然忽略证书检查是一种解决方案,但建议不要忽略证书检查,因为这样会留下安全漏洞。相反,更新ca-certificates包是更好的选择,因为它修复了所有可能导致验证错误的问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值