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

相关推荐
vibecoding日记2 天前
为什么我就想要「线性历史 + Signed Commits」,GitHub 却把我当猴耍 🤬🎙️
git·编程工具
Jony_2 天前
高可用移动网络连接
网络协议
chilix3 天前
Linux 跨网段路由转发配置
网络协议
程序员小崔日记3 天前
如何将代码轻松上传到 Gitee?Git 使用全攻略!
git·gitee·上传
Bigger4 天前
为什么你的 Git 提交需要签名?—— Git Commit Signing 完全指南
git·开源·github
DianSan_ERP4 天前
电商API接口全链路监控:构建坚不可摧的线上运维防线
大数据·运维·网络·人工智能·git·servlet
gihigo19984 天前
基于TCP协议实现视频采集与通信
网络协议·tcp/ip·音视频
白太岁4 天前
通信:(5) 电路交换、报文交换与分组交换
运维·服务器·网络·网络协议
EasyGBS4 天前
国标安全升级:GB28181平台EasyGBS支持GB35114协议的应用场景与核心优势
网络协议·安全·gb28181·gb35114