Github git clone error: Peer's Certificate has expired
来源:互联网 发布:百乐淘宝旗舰店 编辑:程序博客网 时间:2024/06/05 19:14
今天用github 克隆Tensorflow公共代码库,报 ‘Peer’s Certificate has expired’ 错误
[cos@localhost github]$ git clone --recurse-submodules https://github.com/tensorflow/tensorflowCloning into 'tensorflow'...fatal: unable to access 'https://github.com/tensorflow/tensorflow/': Peer's Certificate has expired.
因为很久没有使用Github了, 也不知道哪里有问题。开始想设置成SSH,后来发现可能是虚拟机时间没有同步,于是安装ntp同步时间,我的系统是centos7:
[cos@localhost github]$ dateWed Aug 26 04:07:42 EDT 2015[cos@localhost scripts]$ sudo yum -y install ntp [cos@localhost scripts]$ sudo chkconfig ntpd onNote: Forwarding request to 'systemctl enable ntpd.service'.ln -s '/usr/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'[cos@localhost scripts]$ sudo ntpdate time.apple.com12 May 07:52:16 ntpdate[28563]: step time server 17.253.84.253 offset 22477005.642802 sec
然后再运行克隆命令就可以了:
[cos@localhost github]$ git clone --recurse-submodules https://github.com/tensorflow/tensorflowCloning into 'tensorflow'...remote: Counting objects: 42594, done.Receiving objects: 2% (1000/42594), 260.01 KiB
其实github也可以配置成通过SSH访问,我最近一直用的bitbucket就是配置成SSH协议。首先生成Key:
[cos@localhost nlp]$ ssh-keygen -t rsa -b 4096Generating public/private rsa key pair.Enter file in which to save the key (/home/cos/.ssh/id_rsa):Created directory '/home/cos/.ssh'.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/cos/.ssh/id_rsa.Your public key has been saved in /home/cos/.ssh/id_rsa.pub.The key fingerprint is:...cos@localhost.localdomainThe key's randomart image is:...
然后要在github网站账户设置里添加公共密匙,就是刚生成的 ~/.ssh/id_rsa.pub文件内容
0 0
- Github git clone error: Peer's Certificate has expired
- git clone error setting certificate verify locations
- Xcode Error " The certificate used to sign "XXX" has either expired or has been revoked"
- git clone遇到error setting certificate verify locations
- Apache 无法启动 err_log提示SSL Library Error: -8181 Certificate has expired
- Peer's certificate issuer has been marked as not trusted by the user
- 错误:Peer's certificate issuer has been marked as not trusted by the user
- 【error】git clone: SSL certificate problem: unable to get local issuer certificate
- android “Debug certificate expired”&&""Your project contains error(s), please fix it before running
- AndroidStudio git github项目时报error setting certificate verify locations !
- Certificate has either expired or has been revoked
- Error: generating final archive:Debug certificate expired
- Server certificate verification failed: certificate has expired, certificate issued for a different
- Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)
- Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s).
- x509 certificate has expired or is not yet valid
- CentOS6—启动httpd失败—Certificate has expired
- The certificate used to sign "app名" has either expired
- 星级评分RatingBar
- 知道这20个正则表达式,能让你少写1,000行代码
- Android进程间通信之----Aidl传递对象
- MuPDF 开源PDF库编译过程记录
- 电阻TP在系统休眠唤醒后无法使用的一点小问题
- Github git clone error: Peer's Certificate has expired
- JQ插件案例-基于jquery和canvas的调色板
- MYSQL的date_format 以及 STR_TO_DATE
- testng实现参数化以及@optional的使用
- 数组的基本概念和初始化方式
- nyoj 743 复杂度(排列组合)
- 转化为十六的数
- 选择排序法
- 服务注册器快速入门教程