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

相关推荐
不是光头 强16 分钟前
Obsidian Git 插件安装与配置完全指南
git
.千余40 分钟前
【C++】C++核心语法:函数重载与缺省参数原理与避坑
c语言·开发语言·c++·经验分享·笔记·git·学习
1024小神1 小时前
在阿里云买的域名和服务器配置cloudflare的DNS解析,并配置cloudflare生成ssl证书可以用15年
服务器·阿里云·ssl
meowrain1 小时前
Git HTTPS Token 凭据配置指南
git·网络协议·https
2501_915909061 小时前
深入理解HTTPS中间人抓包技术原理与实战指南
网络协议·http·ios·小程序·https·uni-app·iphone
学习,学习,在学习1 小时前
Modbus TCP同步通信方式实现异步级效率
网络·c++·qt·网络协议·tcp/ip·qt5
不吃土豆的马铃薯1 小时前
TCP 三次握手 / 四次挥手详解
服务器·开发语言·网络·c++·网络协议·tcp/ip
爱吃苹果的梨叔1 小时前
2026年KVM over IP分布式方案选型指南:清虹创智远程集中管控与坐席协作
分布式·网络协议·tcp/ip
梦奇不是胖猫1 小时前
[ 计算机网络 | 第四章 ] 网络层 01 概述
网络·网络协议·计算机网络
Ws_13 小时前
Git + Gerrit 第二课:diff、暂存区与撤销修改
git