解决 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 命令即可发现此问题。

相关推荐
import_random18 分钟前
[git]只有git,没有github, 如何工作
git·github
import_random19 分钟前
[git]先创建远程仓库or先创建本地项目
git·github
Multipath71234 分钟前
多链路聚合,让具身智能高频视觉感知数据 “回得来、来得快、不中断”
网络·网络协议·5g·智能路由器·信息与通信
重生之高冷汉堡包1 小时前
家庭住宅IP是什么?机房住宅与普通住宅有什么区别
运维·服务器·网络·网络协议·tcp/ip·用户运营
j7~2 小时前
【Linux网络加餐】《HTTPS 协议原理》---详解
网络·网络协议·https·加密·ca认证·解密
Linux实战笔记2 小时前
rebase 变基引发提交哈希重写与指针机制分析
git·rebase·提交哈希·分支模型·代码合并
小稀土1233 小时前
私有化研发协同系统并行期:旧 Jira 与新 Git 并存 6 条数据规则
git
Madison-No74 小时前
Git版本控制工具(二)
git
byte轻骑兵5 小时前
【HIDS】规范精讲[3]:把连接间隔压到极限——SCI 四档调速的底层机制
网络·网络协议·人机交互·hids·蓝牙协议
流浪0015 小时前
计算机网络篇7:传输层——TCP 网络编程常用接口与调用流程
网络协议·tcp/ip·计算机网络·listen·tcp接口