百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> 解决GIT clone自建ssl gitlab的时候提示Peer’s Certificate iss
分享文章到:

解决GIT clone自建ssl gitlab的时候提示Peer’s Certificate iss

发布时间:01/15 来源: 浏览: 关键词:
下面我们来看一篇关于GIT clone自建ssl gitlab的时候提示Peer’s Certificate issuer is not recognized方法,具体的步骤细节如下文详解。


[root@iZ620cgsubhZ /tmp]# git clone https://git.dwhd.org/lookback/docker-gitlab.git
正克隆到 'docker-gitlab'...
fatal: unable to access 'https://git.dwhd.org/lookback/docker-gitlab.git/': Peer's Certificate issuer is not recognized.


[root@iZ620cgsubhZ /tmp]# cd /etc/ssl/certs/
[root@iZ620cgsubhZ /etc/ssl/certs]# make SERIAL=5
This makefile allows you to create:
  o public/private key pairs
  o SSL certificate signing requests (CSRs)
  o self-signed SSL test certificates
 
To create a key pair, run "make SOMETHING.key".
To create a CSR, run "make SOMETHING.csr".
To create a test certificate, run "make SOMETHING.crt".
To create a key and a test certificate in one file, run "make SOMETHING.pem".
 
To create a key for use with Apache, run "make genkey".
To create a CSR for use with Apache, run "make certreq".
To create a test certificate for use with Apache, run "make testcert".
 
To create a test certificate with serial number other than zero, add SERIAL=num
You can also specify key length with KEYLEN=n and expiration in days with DAYS=n
 
Examples:
  make server.key
  make server.csr
  make server.crt
  make stunnel.pem
  make genkey
  make certreq
  make testcert
  make server.crt SERIAL=1
  make stunnel.pem SERIAL=2
  make testcert SERIAL=3
[root@iZ620cgsubhZ /etc/ssl/certs]# cd -
[root@iZ620cgsubhZ /tmp]# echo 'export GIT_SSL_NO_VERIFY=true' >> ~/.bashrc
[root@iZ620cgsubhZ /tmp]# . ~/.bashrc
[root@iZ620cgsubhZ /tmp]# env|grep GIT_SSL_NO_VERIFY
GIT_SSL_NO_VERIFY=true
[root@iZ620cgsubhZ /tmp]#


[root@iZ620cgsubhZ /tmp]# git clone https://git.dwhd.org/lookback/docker-gitlab.git
正克隆到 'docker-gitlab'...
remote: Counting objects: 53, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 53 (delta 7), reused 0 (delta 0)
展开对象中: 100% (53/53), 完成.
检查连接... 完成。
[root@iZ620cgsubhZ /tmp]#


++++++++++++++++++++++++
如果上面的办法还是不行,可以试试下面的
[root@DS-VM-Node200 ~]# openssl s_client -showcerts -connect git.dwhd.org:443 /dev/null | openssl x509 -outform PEM >git.dwhd.org.crt
[root@DS-VM-Node200 ~]# git config http."https://git.dwhd.org/".sslCAInfo < git.dwhd.org.crt[/bash]

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有16人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板