zoukankan      html  css  js  c++  java
  • curl:出现SSL错误提示

    在上一篇博文中,升级ruby版本中,提示如下错误:

    1) Error fetching https://mirrors.aliyun.com/rubygems/:

    1 [root@web ~]# gem sources -a https://mirrors.aliyun.com/rubygems/
    2 Error fetching https://mirrors.aliyun.com/rubygems/:
    3         SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://mirrors.aliyun.com/rubygems/specs.4.8.gz)

    2)curl: (60) Peer certificate cannot be authenticated with known CA certificates

     1 [root@web ~]# curl -sSL https://get.rvm.io | bash -s stable
     2 curl: (60) Peer certificate cannot be authenticated with known CA certificates
     3 More details here: http://curl.haxx.se/docs/sslcerts.html
     4 
     5 curl performs SSL certificate verification by default, using a "bundle"
     6  of Certificate Authority (CA) public keys (CA certs). If the default
     7  bundle file isn't adequate, you can specify an alternate file
     8  using the --cacert option.
     9 If this HTTPS server uses a certificate signed by a CA represented in
    10  the bundle, the certificate verification probably failed due to a
    11  problem with the certificate (it might be expired, or the name might
    12  not match the domain name in the URL).
    13 If you'd like to turn off curl's verification of the certificate, use
    14  the -k (or --insecure) option.

    上述错误是主机时间不对。更改过主机时间后,可避免上述错误。

  • 相关阅读:
    cat n个文件 June
    promise 码农
    [Linux]加载iso文件,并绑定到FTP共享
    [Linux]解决一例多个硬盘Linux启动的问题
    [CentOS]创建yum本地源
    [Java]服务器端用 Axis1.4 返回复杂对象记录
    [chs]Axis2 Binary Distribution 安装指南
    [CentOS]开启yum缓存
    [转]CSS hack总结
    闭包匿名闭包
  • 原文地址:https://www.cnblogs.com/eeexu123/p/9228710.html
Copyright © 2011-2022 走看看