本文主要是介绍解决 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 命令即可发现此问题。
这篇关于解决 git 命令 Problem with the SSL CA cert (path? access rights?)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!