【发布时间】:2021-06-22 14:54:16
【问题描述】:
我正在按照教程 (https://coral.ai/docs/dev-board/get-started/#run-pycoral) 设置边缘 tpu 开发板,并且能够通过 MDT 连接到开发板的外壳。当我尝试 git clone 存储库时,我看到了这个错误消息:
mendel@mocha-zebra:~$ git clone https://github.com/google-coral/pycoral.git
Cloning into 'pycoral'...
fatal: unable to access 'https://github.com/google-coral/pycoral.git/': server certificate verification failed. CAfile: none CRLfile: none
有人可以帮忙吗?谢谢!
我做过/尝试过的事情:
1.更新 CA 证书
mendel@mocha-zebra:~$ sudo apt-get install apt-transport-https ca-certificates -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20190110).
apt-transport-https is already the newest version (1.8.2.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mendel@mocha-zebra:~$ sudo update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
2。获取证书
openssl s_client -showcerts -servername git.mycompany.com -connect git.mycompany.com:443 </dev/null 2>/dev/null | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p' > git-mycompany-com.pem
3.添加到证书列表
cat git-mycompany-com.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt
4.重置时钟
现在date 输出正确的日期和时间
5.禁用 SSL 证书验证
git config --global http.sslverify false
export GIT_SSL_NO_VERIFY=true
在我禁用 SSL 认证验证后,运行 git clone 给出了不同的错误消息:
mendel@mocha-zebra:~$ git clone https://github.com/google-coral/pycoral.git
Cloning into 'pycoral'...
fatal: unable to update url base from redirection:
asked for: https://github.com/google-coral/pycoral.git/info/refs?service=git-upload-pack
redirect: https://charter.guestinternet.com/?UI=8587f8ed-8341-4b82-a120-d257b139c9c4&api_domain=https://secure.11os.com&UI=040d98&NI=0050e8040d98&UIP=24.97.110.215&MA=7CD95CB25273&RN=50&PORT=50&ZONE=Unauth Zone&RAD=yes&PP=no&PMS=no&SIP=172.20.9.93&OS=https://github.com%2Fgoogle-coral%2Fpycoral.git%2Finfo%2Frefs%3Fservice%3Dgit-upload-pack
【问题讨论】:
标签: git ssl github ssl-certificate