GIT clone報錯: SSL certificate problem: unable to get local issuer certificate
今天,我們專案的私有GIT倉庫已經建立好,可以由web頁面透過使用者名稱和密碼登入檢視資料倉庫。
但是,在我的windows本地安裝完git客戶端,進行遠端clone的時候報錯,報錯資訊如下:
$ cd d:
admin@zh MINGW64 /d
$ pwd
/d
admin@zh MINGW64 /d
$ ls
'$RECYCLE.BIN'/ LIBRARY/ vbback/
'Foxmail 7.2'/ 'System Volume Information'/
Git/ Thunder/
admin@zh MINGW64 /d
$ cd Git
admin@zh MINGW64 /d/Git
$ ls
bin/ etc/ LICENSE.txt tmp/ unins000.msg
cmd/ git-bash.exe* mingw64/ unins000.dat usr/
dev/ git-cmd.exe* ReleaseNotes.html unins000.exe*
admin@zh MINGW64 /d/Git
$ mkdir repo_target
admin@zh MINGW64 /d/Git
$ cd repo_target/
admin@zh MINGW64 /d/Git/repo_target
$ ls
admin@zh MINGW64 /d/Git/repo_target
$ git init
Initialized empty Git repository in D:/Git/repo_target/.git/
admin@zh MINGW64 /d/Git/repo_target (master)
$ git clone
Cloning into 'shared'...
fatal: unable to access '.40.167/...-public/shared/': SSL certificate problem: unable to get local issuer certificate
admin@zh MINGW64 /d/Git/repo_target (master)
透過網上檢視,有人push的時候遇到同樣的錯誤,解釋是本地缺少認證,關閉本地的SSL驗證即可,操作如下:
$ git config --global http.sslVerify false
admin@zh MINGW64 /d/Git/repo_target (master)
然後再發起clone操作,會彈出一個git的登陸驗證的使用者名稱和密碼框,輸入正確的使用者名稱和密碼即可進行clone了:
$ git clone
Cloning into 'shared'...
warning: redirecting to .40.167/...-public/shared.git/
remote: Counting objects: 5793, done.
remote: Compressing objects: 100% (40/40), done.
Receiving objects: 31% (1852/5793), 106.23 MiB | 124.00 KiB/s
但是,在我的windows本地安裝完git客戶端,進行遠端clone的時候報錯,報錯資訊如下:
$ cd d:
admin@zh MINGW64 /d
$ pwd
/d
admin@zh MINGW64 /d
$ ls
'$RECYCLE.BIN'/ LIBRARY/ vbback/
'Foxmail 7.2'/ 'System Volume Information'/
Git/ Thunder/
admin@zh MINGW64 /d
$ cd Git
admin@zh MINGW64 /d/Git
$ ls
bin/ etc/ LICENSE.txt tmp/ unins000.msg
cmd/ git-bash.exe* mingw64/ unins000.dat usr/
dev/ git-cmd.exe* ReleaseNotes.html unins000.exe*
admin@zh MINGW64 /d/Git
$ mkdir repo_target
admin@zh MINGW64 /d/Git
$ cd repo_target/
admin@zh MINGW64 /d/Git/repo_target
$ ls
admin@zh MINGW64 /d/Git/repo_target
$ git init
Initialized empty Git repository in D:/Git/repo_target/.git/
admin@zh MINGW64 /d/Git/repo_target (master)
$ git clone
Cloning into 'shared'...
fatal: unable to access '.40.167/...-public/shared/': SSL certificate problem: unable to get local issuer certificate
admin@zh MINGW64 /d/Git/repo_target (master)
透過網上檢視,有人push的時候遇到同樣的錯誤,解釋是本地缺少認證,關閉本地的SSL驗證即可,操作如下:
$ git config --global http.sslVerify false
admin@zh MINGW64 /d/Git/repo_target (master)
然後再發起clone操作,會彈出一個git的登陸驗證的使用者名稱和密碼框,輸入正確的使用者名稱和密碼即可進行clone了:
$ git clone
Cloning into 'shared'...
warning: redirecting to .40.167/...-public/shared.git/
remote: Counting objects: 5793, done.
remote: Compressing objects: 100% (40/40), done.
Receiving objects: 31% (1852/5793), 106.23 MiB | 124.00 KiB/s
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29357786/viewspace-2152598/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- git SSL certificate problem: unable to get local issuer certificateGit
- [GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate problem: unable to get localHTTPExceptionError
- 關於使用 git 命令列時遇到的錯誤訊息 unable to get local issuer certificateGit命令列
- windows 環境下使用 Node.js 遇到 unable to get local issuer certificateWindowsNode.js
- 解決git SSL certificate problemGit
- Node.js 應用訪問 https 伺服器時遇到 unable to get local issuer certificateNode.jsHTTP伺服器
- SSL certificate chainsAI
- Linux 報錯Certificate verification failed: The certificate is NOT trusted.LinuxAIRust
- error:14090086:SSL routines:ssl3_get_server_certificateErrorServer
- PHP composer 報錯 certificate verify failedPHPAI
- 修復 SSL Certificate Problem,如何定位及常見問題的處理策略
- 專案使用guzzleHttp報錯:certificate has expiredHTTP
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- electron專案npm i 報錯certificate has expiredNPM
- android javax.net.ssl.SSLPeerUnverifiedException: No peer certificateAndroidJavaException
- git pull報“unable to update local ref”解決方案Git
- Certificate Authority
- Useless SAP PA certificate, do we still need to get it?
- Git|記一次Git clone報錯Git
- git (v2.18.0) error setting certificateGitError
- 安裝或執行clone報錯 Unable to find 'kshell' in path
- yarn certificate has expiredYarn
- Nginx配置ssl_client_certificate客戶端認證問題Nginxclient客戶端
- SQLServer2012搭建AlwaysOn報錯:Certificate not found. State 89SQLServer
- ***PHP5.6.xSSL3_GET_SERVER_CERTIFICATE:certificateverifyfailed解決方案PHPServerAI
- RHEL8.9中anywhere報錯error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small的解決辦法.Error
- 請求https介面時報錯:Caused by SSLError(SSLError(1, u‘[SSL: CERTIFICATE_VERIFY_FAILED] certificat,安裝certifiHTTPErrorAI
- npm報錯:request to https://registry.npm.taobao.org failed, reason certificate has expiredNPMHTTPAI
- 關於Oracle Certificate ProfessionOracle
- Rancher Dashboard 無法訪問 引申發現K8S報錯Unable to connect to the server: x509: certificate has expired or is not yet validK8SServer
- 解決問題: go get certificate signed by unknown authority 換個代理或者Go
- .net core中Grpc使用報錯:The remote certificate is invalid according to the validation procedure.RPCREM
- 【rac故障】root.sh報錯Unable to get VIP info for new node
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- 公司內網使用git clone報錯ssh連線超時內網Git
- 記一次git clone的報錯以及對CentOS上的git版本更新GitCentOS
- 教育授權certificate used to sign the license
- git clone 報錯 “URL using bad/illegal format or missing URL“GitORM