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

相关推荐
___波子 Pro Max.3 小时前
Git Remote 仓库地址变更
git
橙子圆1236 小时前
WebSocket
网络·websocket·网络协议
醉颜凉6 小时前
超详细图解:HTTPS 中的 SSL/TLS 完整握手过程(面试必背)
面试·https·ssl
不做菜鸟的网工7 小时前
OSPF NBMA 网络环境下的 Hub-and-Spoke
网络协议
ModestCoder_8 小时前
Git 忽略所有 `.xlsx`,但保留指定 Excel 文件的方法
git·excel
从零开始学习人工智能9 小时前
同文件同网络,curl 上传飞快,浏览器 HTTP/1.1 却慢到离谱?终于找到元凶!
网络·网络协议·http
程序员小白条9 小时前
别盲目卷算法!2026 程序员\&大学生,最稳的 AI 技术进阶路线全梳理
java·网络·人工智能·网络协议·http·面试
阡陌..9 小时前
202605新版git_2.54.0常用操作指令
大数据·git·elasticsearch
会笑的小熊10 小时前
VScode项目推送到git仓库
ide·git·vscode
zhangfeng113310 小时前
宝塔服务器完全可以安装 Git,进行版本管理,而且非常简单
运维·服务器·人工智能·git·编程