解决 git 命令 Problem with the SSL CA cert (path? access rights?)

/etc/pki/nssdb 错误

运行命令: 

 GIT_CURL_VERBOSE=1 git clone  git_repo_url

会输出详细错误信息

Cloning into 'fp_sdk'...
* Couldn't find host xxx.com in the .netrc file; using defaults
* About to connect() to xxx.com port 443 (#0)
*   Trying 10.44.52.77...
* Connected to xxx.com (10.44.52.77) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* Unable to initialize NSS database
* Initializing NSS with certpath: none
* Unable to initialize NSS
* Closing connection 0
fatal: unable to access 'https://git-biz.qianxin-inc.cn/dlp/mousika/fp_sdk.git/': Problem with the SSL CA cert (path? access rights?)

最后发现是系统中libsqlite3.so.0 不在正常位置,导致系统无法调用,打不开nssdb( sqlite格式数据库)

运行   certutil  命令即可发现此问题。

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值