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伺服器
- error:14090086:SSL routines:ssl3_get_server_certificateErrorServer
- Linux 報錯Certificate verification failed: The certificate is NOT trusted.LinuxAIRust
- PHP composer 報錯 certificate verify failedPHPAI
- 修復 SSL Certificate Problem,如何定位及常見問題的處理策略
- 專案使用guzzleHttp報錯:certificate has expiredHTTP
- Fiddler(三)Fiddler 報錯creation of the root certificate was not successful
- SAP QM Certificate of Analysis – Incoming Certificate
- git (v2.18.0) error setting certificateGitError
- Useless SAP PA certificate, do we still need to get it?
- electron專案npm i 報錯certificate has expiredNPM
- git pull報“unable to update local ref”解決方案Git
- Certificate Authority
- SQLServer2012搭建AlwaysOn報錯:Certificate not found. State 89SQLServer
- 請求https介面時報錯:Caused by SSLError(SSLError(1, u‘[SSL: CERTIFICATE_VERIFY_FAILED] certificat,安裝certifiHTTPErrorAI
- yarn certificate has expiredYarn
- .net core中Grpc使用報錯:The remote certificate is invalid according to the validation procedure.RPCREM
- Nginx配置ssl_client_certificate客戶端認證問題Nginxclient客戶端
- Rancher Dashboard 無法訪問 引申發現K8S報錯Unable to connect to the server: x509: certificate has expired or is not yet validK8SServer
- npm報錯:request to https://registry.npm.taobao.org failed, reason certificate has expiredNPMHTTPAI
- 解決問題: go get certificate signed by unknown authority 換個代理或者Go
- RHEL8.9中anywhere報錯error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small的解決辦法.Error
- 轉載:yarn安裝依賴時報錯certificate has expired at TLSSocket.onConnectSecureYarnTLS
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- git clone 報錯 “URL using bad/illegal format or missing URL“GitORM
- 【rac故障】root.sh報錯Unable to get VIP info for new node
- 教育授權certificate used to sign the license
- 關於 SAP Cloud Connector 500 failed to sign the Certificate 的錯誤訊息CloudAI
- sourcetree github clone 報錯 hg clone fails with “repository not found“GithubAI
- git拉取程式碼報錯filename too long unable to create fileGit
- 如何把某個網站的SSL Server certificate鏈匯入到ABAP Netweaver系統裡網站Server
- WSL git cloneGit
- gitlab-runner x509: certificate signed by unknown authorityGitlab