New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
lookfwd opened this issue
Jul 4, 2017
· 40 comments
Comments
Getting this error while cloning the book:
C:Usersme> git clone https://github.com/scalingexcellence/scrapybook.git
Cloning into 'scrapybook'...
fatal: unable to access 'https://github.com/scalingexcellence/scrapybook.git/':
error setting certificate verify locations:
CAfile: C:Program FilesGitmingw64/bin/curl-ca-bundle.crt
CApath: none
Copy link
Collaborator
Author
A temporary fix is to use GIT_SSL_NO_VERIFY
to disable ssl checking.
set GIT_SSL_NO_VERIFY=true
git clone...
lucasbugnon, ElMoatamidOussama, Gelberm, KA24956T, ravi23796, dflo, LuizFelipe2mn, jkhere, xywang-talend, adiljamal007, and 60 more reacted with thumbs down emoji
SashaShoka reacted with confused emoji
Installing Git again fix this error in my case.
guptavibhor, abhipinapaka, ravi23796, adiljamal007, carlosdagos, susenmaharjan, selvin-joseph, andrewpareles, rahulnagavalli, Isaacbelo, and 16 more reacted with thumbs down emoji
git config --global http.sslverify "false"
This command resolve my problem
KA24956T, ravi23796, splinter89, dflo, adiljamal007, process0, carlosdagos, orgi, leonheess, carpenterjc, and 40 more reacted with thumbs down emoji
dcworldwide, PeterWippermann, adiljamal007, kuaidaili-dev, eperez86, liangkai, lmw123, FerAnimaciones, hisigns, navgarg, and 13 more reacted with laugh emoji
susenmaharjan, eperez86, liangkai, lmw123, gonghs, MrJavaScript1990, Myung5, peppard102, JElfferich, THEBEAST310, and 12 more reacted with hooray emoji
adiljamal007, AlexanderTang, aminechir, JRunnerL, leinad87, unrealcznyui, oxydonth, patheard, and ulysses-ck reacted with confused emoji
eperez86, liangkai, lmw123, FerAnimaciones, Myung5, Manamw2, navgarg, peppard102, JElfferich, Thejaswi1405, and 33 more reacted with heart emoji
Utkarsh-Gangal, mkltaneja, z3n3x, LiuYinglovecode, rxa271, Maxython, ulysses-ck, artyom12211, luzixiao, ScareTrow, and 2 more reacted with rocket emoji
eperez86, FerAnimaciones, NoBrainer, danghieuliem, ulysses-ck, lcan520, and Apteryx009 reacted with eyes emoji
still i am getting same error
git config --global http.sslverify "false"
This command resolve my problem
why it came what was the problem
why i need to use this command
why i need to use this command
It disables verification for all certificates.
Got the same issue, used SSH public key…more convenient for lazy dudes like me besides, cannot update Git client on my NAS in an easy way
It’s a better solution to get the ca-bundle.crt
file and update the git config to use it with:
git config http.sslCAinfo "/path/to/ca-bundle.crt"
llMaximll and EdwinWalela reacted with hooray emoji
Bouriga, Leya555, bls61793, boro28, EdwinWalela, KingPegasus, shizzic, and lukasfichnaCGI reacted with heart emoji
@NoBrainer hey , I tried doing it . but it is not working . can you please help. still shows
CAfile: C:Program FilesGitmingw64/bin/curl-ca-bundle.crt
it is a mac OS.
@boiindo, it looks like you’re mixing Windows and UNIX-based path syntax. You probably want something more like:
git config http.sslCAinfo "/c/Program Files/Git/mingw64/bin/curl-ca-bundle.crt"
(Make sure you verify that the path is correct by doing something like: cd /c/Program Files/Git/mingw64/bin
.)
@NoBrainer thanx for replying. I did notice the mixing of 2 syntax. Donot understand how a windows path is present in macos. tried searching for curl-ca-bundle, couldn’t find it. tried exporting certificates into a .pem file , but then get «fatal not in git directory» ( should i add the file in the bin) . when trying to change the path with git config , it says no access.
Kindly help. Can I download certificates from somewhere (don’t know authentic places) and place it in the git directory ?
@boiindo, you’ll need to check inside of the directory where git is installed. For my Windows installation, it’s this: Git/mingw64/ssl/certs/ca-bundle.crt
. I’m not sure where it installs it for Mac, but I assume you can find it in the installation directory. (If you do not find this, you probably have an outdated version of git, so you should reinstall it first.)
Thanks guys, the following has helped me to fix the issue:
git config —global http.sslverify «false»
NoBrainer, mariusingjer, joshfleming, dandiDrazard, ErickOF, Gimli05, scrambledheads, sxs1539, imonsheikh, devakishore, and mrakic-igt reacted with thumbs down emoji
git config --global http.sslverify "false"
This command resolve my problem
Thank you soo sooo much
I got frustrated because it wasn’t working , thank you!!!!!
@Erasmus24 & @pranavdj9, by turning off http.sslverify
, you are treating the symptom instead of solving the problem. You should fix the certificate issue instead of downgrading your security. This is only acceptable when debugging or working with a prototype.
Well… I really don’t know how to fix that, I tried searching the internet… but didn’t find anything relatable. If you know how to do it, then pls tell me
I’ve just started using git bash, so I only know limited and basic commands
@pranavdj9, you need to find where ca-bundle.crt
is located within the Git installation. If you can’t find it, you probably have to update/reinstall Git. Once you find the file, you can run: git config http.sslCAinfo "/path/to/ca-bundle.crt"
Thanks so much
I will definitely try it
Thanks Steve I really appreciate
…
On Sun, Oct 25, 2020 at 9:07 PM Steven Penny ***@***.***> wrote:
I had this problem as well. My issue was this file:
/usr/ssl/certs/ca-bundle.crt
if by default just an empty file. So even if it exists, youll still get the
error as it doesnt contain any certificates. You can generate them like
this:
p11-kit extract —overwrite —format pem-bundle /usr/ssl/certs/ca-bundle.crt
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQM7RKSSX5U6OJUI2DDB4DDSMTKXLANCNFSM4DRWJ7IA>
.
I was getting the same error, and i resolved it with this steps:
- Unnistall Git from your PC, and remove the folder remained(Git/etc).
- Access your path variables and remove the git from all the users and the general path.
- Install git again running as admin.
While installing git I enabled the git credential manager. Weeell, I clicked next next next finish
without customizing anything. But when am pushing my code to my github account and am about to complete authentication by authorizing the git credential manager, am unable to because where am supposed to click has been disabled.
Helloooo, I got a solution to my problem an am happy. I was using Microsoft edge a my default browser and it had no certificates for verification. That is why the button «authorize git credential manager» was disabled. Thanks to me😊
One possible reason you’re getting that error is because this path C:Program FilesGitmingw64/bin/curl-ca-bundle.crt (which is the CA file path shown in the error message) is NOT where your curl-ca-bundle.crt is located.
I went into program files (file explorer) and found that my CA file was located at D:ProgramFiles(D)Gitmingw64sslcertsca-bundle.crt. I had installed Git on a different location than they expected.
To tell Git to run on the correct path, run: git config --system http.sslcainfo "YOUR PATH"
example:
git config --system http.sslcainfo "D:ProgramFiles(D)Gitmingw64sslcertsca-bundle.crt"
After that, go ahead and run the git clone / git push / ect. stuff! Looks like the post author’s next step is running git clone https://github.com/scalingexcellence/scrapybook.git
@pranavdj9, you need to find where
ca-bundle.crt
is located within the Git installation. If you can’t find it, you probably have to update/reinstall Git. Once you find the file, you can run:git config http.sslCAinfo "/path/to/ca-bundle.crt"
i know this reply is late but i am having same issue on my windows laptop. can you please guide me through?
git config —global http.sslverify «false»
This solved my error, thanks so much
Thanks guys, the following has helped me to fix the issue:
git config —global http.sslverify «false»
When I use this, it says: error: could not lock config file C:/Users/Irene/.gitconfig: Permission denied
what can i solve it?
git config —global http.sslverify «false»
This command solve problem
git config --global http.sslverify "false"
This command resolve my problem
My Problem is solved using this command.
Thanks JayaniSumudini 👍🏻
It’s a better solution to get the
ca-bundle.crt
file and update the git config to use it with:git config http.sslCAinfo "/path/to/ca-bundle.crt"
This is the line we all need, it works like a charm for me, but be sure to have only that line and not http.sslCApath
and use --system
to apply system-wide
Here is my command :
sudo git config --system http.sslCAinfo /usr/local/share/ca-certificates/zscaler.crt
Here is my file :
[http]
sslCAinfo = /usr/local/share/ca-certificates/zscaler.crt
Disabling ssl was not an option for me
Like other suggested. git config --system http.sslCAinfo "C:Program FilesGitmingw64sslcertsca-bundle.crt"
— worked, just remember to run this command in Terminal opened with administrator privilege… I didn’t, I suffered for 20 minutes.
Did the command that supposedly fixes it, went through successfully. Yet I am still getting the same error, I am using portablegit and do not have administrative permissions on this PC. Any ideas?
I had this issue as well. Hopefully I’m not repeating an answer but I figured I’d document a cause. I had renamed the «User» folder where git was installed. I had already updated my $PATH variables but I didn’t update any git configs.
Old Directory T:*oldname*Gitmingw64sslcertsca-bundle.crt
New Directory T:*newname*Gitmingw64sslcertsca-bundle.crt
So I just used this like many others posted above:
git config --global http.sslCAInfo T:newnameGitmingw64sslcertsca-bundle.crt
in my case this was caused by my ca-bundle.crt
was owned by the wrong user and not readable by others, chmod a+r ca-bundle.crt
fixed it
For me it was another issue. Had a friend much more experienced with git then me help fix it. They fixed it by running
git config --global http.sslbackend schannel
They found it off of here: microsoft/Git-Credential-Manager-for-Windows#646
Solved it for me
Error setting certificate verify locations — Github
I am having problem accessing github repository through Git Bash.
2 days ago I was able to push/pull the repositories. Then
1) I created an account on gitlab.com
2) I generated ssh key on my local pc following GitLab and SSH keys using git bash on windows
3) After this I did not create/pull/push any repository on gitlab.
Today I make few changes in a code (that is deployed on github), when I try to push that code I get following error
There is no ssl folder in libexec
Also no file/folder changed in Git folder since Jan 2017
It seems like git-bash issue, not sure. Can anyone help ?
6 Answers 6
In my case, on windows, It was not working after setting of name , e mail as well as certificates path for git config. following command run from command prompt fixed this issue.
git config —global http.sslcainfo «C:Program FilesGitusrsslcertsca-bundle.crt»
path of your ca-bundle.crt may vary in your case.
First, creating ssh keys won’t help for an HTTPS url.
Keep those keys, but if you want to use them, you would need to put existing ssh keys to your github account then
Second, regarding the cert error, try to push from a simple CMD, using a simplified PATH as I do here, with said PATH referencing the very latest Git for Windows.
For that, uncompress PortableGit-2.16.1-64-bit.7z.exe anywhere you want.
On openSUSE 15.2 WSL (Windows Subsystem for Linux), I fixed this error by:
/etc/pki/tls/certs/ca-bundle.crt was the certificate file mentioned in the error. I noticed the file was missing. The full error in my case was:
This command, Then your usual git clone «url» thing.
It can cause trouble in future to pull/push the secure repository. So disable at your risk.
For windows i found the same error having cloned successfully using GitHub desktop . When I tried doing a sync using Visual Studio, the error appeared.
My GitHub desktop runs 64 bit, but it has its git folder was placed in the Program (x86) folder (why?) The VS is also a 64 bit application, but has the certicate more naturally in the Program folder.
Solution: I copied content of C:Program Files (x86)Gitmingw32ssl to C:Program FilesGitmingw64ssl
And the Git of VS worked perfect
One of my team member came to my seat with this error and I have identified that git was not installed on the system that’s why he was getting this error.
Although Microsoft does suggest to install Git for Windows but you don’t have to install it for the Visual Studio 2013 or 2017 as the same page ends with:
Visual Studio offers a great out of the box Git experience without any additional tooling. Learn more in our Visual Studio Git tutorial.
Git comes as an optional component for Visual Studio 2019 ,and you need to manually install it to work with Git servers such as Team Foundation Services, GitHub, and BitBucket. You can find more details about this here
Источник
Laravel 5 Socialite — cURL error 77: error setting certificate verify locations
I am using socialite in Laravel 5 to setup facebook login. I followed the instructions carefully until I got stuck with the following error
so I found the this answer to fix it which indeed passed but then I got this error
Any ideas what’s the cause of this error?! and how to fix it?!
24 Answers 24
I got stuck on this problem as well. It turned out that I had the path to my certificate set incorrectly in my php.ini file. Forgot the .txt extension.
What I changed it to:
Hope this helps.
Change setting in php.ini file:
cURL error 77: error setting certificate verify locations: CAfile: C:xamppapachebincurl-ca-bundle.crt CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
This works well for me:
- Download the certificate from: https://curl.haxx.se/ca/cacert.pem
- Rename the cacert.pem file into curl-ca-bundle.crt
- Copy the file into path/to/xampp/apache/bin
- Restart apache
I experienced some issues following instructions in regards to error 77.
On Windows 7, depending on your security settings — the file downloaded may be blocked. See screenshot:
Once I unblocked the file and ensured proper user access rights, I also had to put the file in the following location:
In addition to changing php.ini per the other posts on this issue.
After completing the above steps, restarting Apache via the XAMPP Control Panel, the error was resolved.
- Save this certificate (https://curl.haxx.se/ca/cacert.pem) as cacert.pem.txt in C:xamppphp
Then it works fine!
- Download from (https://curl.haxx.se/ca/cacert.pem)
- Change the name ‘cacert.pem‘ to ‘curl-ca-bundle.crt‘
(after that, move it to the path ‘C:xamppapachebin’) - In ‘php.ini‘, remove ‘;‘ in the following line: curl.cainfo=»C:xamppapachebincurl-ca-bundle.crt»
That works for me.
Checkout double quote on php.ini file: if you copied and past from the Web maybe you got wrong double quote:
In your php.ini file, you should also update your
with the same cacert.pem link you used in updating your
Have a look at mine before and after
this fixes the cURL 60 error
fixes the cURL 77 error.
NB: Do not forget to restart your server before trying it out.
For those who wish to find their php.ini file, use this command after you cd into your application
You need to replace the existing certificate with the other one here. After that:
- Extract and add it to xamppphpext
- Open xamppphpphp.ini
- Add this line curl.cainfo=’location from the first step’ to the end of the file.
- Restart and it should be working now.
This is the source link.
For windows
I had same problem after i updated php on window 2008. Suddenly all my php codes stopped working. What i did, i opned php.ini then i found a line
and i changed to
curl.cainfo = «C:Program Files (x86)PHPv7.0cacert.pem» (remember to remove ; before curl.cainfo)
and everything went to normal. What you need is to download a cert file cert.pem and place it anywhere on your server and change the line as i did in php.ini
This same problem with me in php version 8.0.3 on windows : Solution was I had to uncomment and set openssl.capath=path of certs in php.ini file.
I already set openssl.cafile so it was not throwing error for that but oepnssl.capath was not set sot error was there.
I read every thread I could find and this one provided the missing piece.
Background: I encountered this issue will trying to get Drupal 8 to check for available updates on a fresh development environment (wamp based).
- Get a copy of the Certificate data from Mozilla, it can be found here: https://curl.haxx.se/ca/cacert.pem If you want to know more about what this is read this: https://serverfault.com/questions/241046/what-is-the-cacert-pem-and-for-what-to-use-that
- Save the file as «cacert.pem.txt» not as «cacert.pem» This was the missing piece, thanks LyleK!. I have no clue why but you must have the .txt extension on the end or it does not work.
- Explicitly add the path to the location of the «cacert.pem.txt» file to your php.ini
If you are using a wamp stack restart it. You should be good to go.
Источник
Unable to pull/push in git repository
I am getting this error when I pull or push my code.
Please guide me to fix this.
23 Answers 23
When using https you will need to supply password or using a certificate. In your case looks like the certificate is not a valid one.
Try fixing it like this by telling git where to find the certificate:
Alternatively, you could disable SSL checks:
Set this in your config to disable it only for the given url and not for all requests
http.sslVerify
Whether to verify the SSL certificate when fetching or pushing over HTTPS.
http.sslCAInfo
File containing the certificates to verify the peer with when fetching or pushing over HTTPS
I once had the same problem. My problem occured after re-installing git for windows. I’m using git for windows 64-bit on windows 10.
I found out that the installer did not install git anymore in C:/Users/[USER_NAME]/AppData/Local/Programs/Git . Instead it installed it under C:Program FilesGit .
Nevertheless the old config file C:ProgramDataGitconfig was not edited by the installer. This file still contains the old path so I edited it manually.
E.g. on my system I used
maybe you will have to use Program Files instead
EDIT
Like DS said in his comment
C:ProgramDataGitconfig needs to be edited as Administrator.
E.g. right click on notepad and select «Run as Administrator» then open the file.
I was also facing this problem in windows and running git using gitbash. I just reinstalled gitbash, And gitbash automatically managed git certificate and its path needed.
In version 2.x of git-bash The path to the .crt has changed to ../Git/mingw64/ssl/certs/ca-bundle.crt. I had to update this manually in git-bash with
Switch off your SSL by running this command
This issue might occur when git client is not able to find trusted CA for ssl. If you are in windows, try reinstalling it from https://gitforwindows.org/.
During the installation, select «Use the native Windows Secure Channel library» option. That option will allow you to use your company’s internal Root CA certificate instead of default ca-bundle.crt
- will solve the problem after that Pop-up window appear to enter your username and password make sure valid .
If your git version is 2.8.1.windows.1,this may help you. First , you need to locate your git home directory,mine is D:SDKGit.Just in the same directory,you can find folder «usr»,open it and goes to sslcerts,you can find the certificate:ca-bundle.crt.
Then open console,execute:
git config —system http.sslcainfo «D:SDKGitusrsslcertscabundle.crt»
This will do the work while moving from GIT 2.x clients to 2.5.x:
Looks like after installing a new version of GIT client, it changes the path it looks for certificates from something like this:
to something like this:
To fix this, just copy the ‘ssl’ folder to the new location and it’ll work like a charm!
Go your git directory and move the mingw64/ssl folder to mingw64/libexec/ssl
This thread is a lot of blind-leading-the-blind answers. I’m just one more blind man here, but I just had the same issue and solved it by following this easy article. As I understand the original question, git is trying to find an SSL cert file in order to use the HTTPS protocol, and failing to find the file. Most of the answers here seem to focus on «well, just disable SSL then,» rather than replacing the file correctly.
This incantation should generate the cert file and put it in the correct location for git on cygwin:
In case you monkeyed with your git config (like I did) and need to set it BACK, this should do it:
Источник
Github: error cloning my private repository
I’m trying to clone my GitHub project using the https-URL, but it fails with an error:
What am I doing wrong?
27 Answers 27
I have seen this on Windows, with msysgit 1.7.2.3. You have to fix the path to bin/curl-ca-bundle.crt. I had to specify the absolute path, using back-slashes:
This will result in changes to [git-install-dir]/etc/gitconfig file, which may be edited directly, too.
I solved the problem installing the Git from: https://git-for-windows.github.io/ Locate the cert file path:
Configure the Git path:
git config —system http.sslcainfo «D:Program FilesGitmingw64sslcertsca-bundle.crt»
If you use MSYS2.
Just install the certificate packages with the following commands:
32 bits
64 bits
If you were using Cygwin, you might install the ca-certificates package with apt-cyg:
Will solve the problem. After that a Pop-up window appears to enter your username and password
SOLVED: I got this error when I installed an update to the Git windows installer. What happened is that I did not install it with administrator rights, so Git was installed in «C:Usersmy_nameAppDataLocalPrograms» instead of «C:program Files». re-installing Git as administrator allowed to put it in C:program Files and everything went fine again !
This worked for me (I’m using Manjaro linux). I run the cmd to view ca-certificates:
But actually i found the certificates at the path:
Then add the config into
/.gitconfig (if not existing, create it):
git config —system http.sslcainfo /bin/curl-ca-bundle.crt
This works. You don’t have to give full path.
I faced this while git pull. For mine edited the global git config file that fixed problem.
Goto your home folder and open .gitconfig file. Usually C:Users.gitconfig
If the file is not there create it
[http]
sslcainfo = E:systoolsgit-1.8.5.2bincurl-ca-bundle.crt
There you have to given your own git installation path. I have used portable version of git here.
Then git clone / pull it will work.
In my win10 case I have two versions of .gitconfig
- the first one is in C:Program FilesGitetc
- the second is in C:Users
indeed makes changes to C:Program FilesGitetc , but git somehow uses config in C:Users
So with notepad I changed the second one .gitconfig and git finally took right configuration and got working.
If you are using the Git command shell that installs with the GitHub for Windows app then this and various other problems can show after an update. Just start the Git Hub windows app and shut it down again. The shell will then work OK again. The problem is that the update does not complete until the windows application is run. Just using the shell on its does not trigger the update to complete.
I’ve seen this on my Github for Windows.
I recommend uninstalling Github for Windows and installing it again.
Before this, I tried several ways with no success, but this solution worked for me!
On Windows using msysgit I had this error and the cause was my additions of our corporate proxy certificates.
If you edit your curl-ca-bundle.crt you have to get sure about your lineendings. In case of the curl-ca-bundle you have to use Linux-Style lineendings.
You can use notepad++ to convert the lineendings to Linux (linefeed).
On a side note, this issue can happen in Windows if the user who is trying to use git is different than the user who installed it. The error may indicate that git cannot access the certificate files. Installing git as the administrator and using @rogertoday’s answer resolved my issue.
I found a good solution for adding/updating the CA certificates on RHEL/CentOS 6 which is the root cause reported issue.
Since they become outdated distros, the cacert authorities in that system has not been updated until executing the command sudo yum update .
Didn’t realize the issue until the GIT_CURL_VERBOSE mode shows the cacert path issue.
I encountered this error after updating to Visual Studio 2019 16.10.2 (from 16.10.0), whereas previously Git was working correctly.
I do not have Git installed separately. (Or, put another way, I only use Git as part of Visual Studio.)
I solved this problem by locating the file «ca-bundle.crt» at «C:Program Files (x86)Microsoft Visual Studio2019ProfessionalCommon7IDECommonExtensionsMicrosoftTeamFoundationTeam ExplorerGitmingw32sslcertsca-bundle.crt» , and then copying it to the folder it was indicating it couldn’t be found at, «C:Program FilesGitmingw64sslcertsca-bundle.crt» .
Do note that I had to create the «mingw64sslcerts» directories, as they did not previously exist.
After copying the file there, Git was able to sync once again immediately without restarting Visual Studio.
Источник
$ git pull origin master
fatal: unable to access 'https://xxxxxxxxxxxxxxx':
error setting certificate verify locations:
CAfile: C:/Users/abc/AppData/Local/Programs/Git/usr/bin/curl-ca-bundle.crt
CApath: none
Я получаю эту ошибку, когда вытаскиваю или нажимаю свой код.
Пожалуйста, помогите мне это исправить.
23 ответа
Лучший ответ
Я также столкнулся с этой проблемой в Windows и запустил git с помощью gitbash. Я только что переустановил gitbash, и gitbash автоматически управлял сертификатом git и нужным путем.
24
user5710358user5710358
29 Дек 2015 в 12:14
У меня аналогичная проблема, но удаление gitbash и переустановка в систему помогли мне.
-2
Gaurav kedia
4 Окт 2019 в 19:47
У меня такая же ошибка в Windows 7. Обнаружено, что путь сертификата, указанный в ошибке, не существует. Вместо … mingw32 usr ssl … файл сертификата находился в … mingw2 ssl … Поэтому я создал папку usr вручную и переместил все дерево ssl в usr. Это устранило проблему.
0
Ramkumar NJ
9 Авг 2016 в 14:38
У меня такое же сообщение об ошибке, но в моем случае это было потому, что я изменил настройки github, чтобы использовать ssh вместо https.
И репозиторий с проблемой был клонирован с помощью https после удаления пульта дистанционного управления и повторного добавления его с помощью ssh, он работает должным образом.
$git remote remove origin
$git remote add origin git@github.com:UserName/repo.git
Тогда git remote show origin
правильно показывает пульт.
0
AWolf
2 Авг 2016 в 20:18
Я обнаружил, что следующие шаги полезны для решения проблемы со своей стороны для Windows 10:
Удаление git.
Однако git uninstaller не делает чистой работы. Так что вам может потребоваться удалить каталог Git в C: Users [My name] AppData Local Programs
После этого новая установка git должна установить его в каталог C: Program Files Git, на который указывает файл конфигурации, чтобы прочитать сертификат ssl.
0
14inc
13 Июн 2016 в 22:50
Используя Intellij и git-sdk-64, и сначала выбрал git-sdk-64mingw64bingit.exe
, чтобы получить эту проблему, затем при переключении на git-sdk-64cmdgit.exe
он вычислил только местоположение файла сертификата и никакой другой конфигурации не потребовалось. (не использовали git config --global http.sslcainfo ...
)
0
arntg
5 Май 2016 в 18:52
Текущая сборка Git для Windows (2.18.0.windows.1) содержит ошибку — если http.sslcainfo не установлен, предполагается, что хранилище сертификатов будет найдено в C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
.
Хранилище сертификатов фактически установлено в C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
, поэтому для исправления необходимо указать правильный путь.
Более того, реализация SCHANNEL также нарушена в этой сборке.
Наконец, диспетчер учетных данных Git также не работает, потому что, если у вас есть учетные данные CI / CO, сохраненные из установки gitlab-runner, он не сможет клонировать / выталкивать / вытягивать с ошибкой отказа в доступе вместо запроса других учетных данных.
1
Igor Levicki
28 Июл 2018 в 09:00
У меня возникла такая же проблема после моего последнего обновления cygwin после установки Windows 10. Команда update-ca-trust
не удалась во время установки.
Причина, похоже, в том, что владелец группы для папки сертификата был поврежден. Несколько радикальным решением было удаление /etc/group
, оказалось, что cygwin может напрямую запрашивать у Windows права группы.
Решение найдено на сайте http: //zaunerc.blogspot. se / 2016/01 / cygwin-mapping-windows-sids-to-posix.html
1
Bimme
3 Июн 2016 в 14:38
Для будущих читателей:
У меня возникла эта проблема после установки пакетов разработки на cygwin.
Я попробовал все исправления в этой теме, но ничего не работало
Затем я наткнулся на эту ветку на github
Что я сделал, так это то, что я обнаружил, что CAPATH был указан в gitconfig, и я удалил эту спецификацию https, и это решило мою проблему.
2
Steven
17 Фев 2019 в 07:29
git config --global http.sslverify "false"
- решит проблему после того, как появится всплывающее окно для ввода вашего имени пользователя и пароля, убедитесь, что они действительны.
4
Abubakr Elghazawy
13 Сен 2017 в 19:46
Попробуй это
git config --system http.sslcainfo "C:Program Files (x86)gitbincurl-ca-bundle.crt"
Или
Отключите свой SSL, выполнив эту команду
git config --system http.sslverify false
5
Prabu Guna
29 Дек 2015 в 11:32
Однажды у меня была такая же проблема. Моя проблема возникла после переустановки git для Windows. Я использую git для 64-разрядной версии Windows в Windows 10.
Я обнаружил, что программа установки больше не устанавливает git в C:/Users/[USER_NAME]/AppData/Local/Programs/Git
. Вместо этого он установил его под C:Program FilesGit
.
Тем не менее старый файл конфигурации C:ProgramDataGitconfig
не редактировался установщиком. Этот файл все еще содержит старый путь, поэтому я отредактировал его вручную.
Например. в моей системе я использовал
[http]
sslCAInfo = C:/Programme/Git/mingw64/ssl/certs/ca-bundle.crt
Возможно, вам придется использовать вместо этого Program Files
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
ИЗМЕНИТЬ
Как сказал DS в своем комментарии
C: ProgramData Git config необходимо отредактировать как администратор .
Например. щелкните правой кнопкой мыши блокнот и выберите «Запуск от имени администратора», затем открыть файл.
25
René Link
11 Июл 2017 в 05:33
При использовании https
вам потребуется указать пароль или использовать сертификат. В вашем случае похоже, что сертификат недействителен.
Попробуйте исправить это так, указав git, где найти сертификат:
// Add the certificate to your configuration file
git config --system http.sslcainfo "C:Program Files (x86)gitbincurl-ca-bundle.crt"
В качестве альтернативы вы можете отключить проверку SSL:
// or switch off SSL checks completely by executing:
git config --system http.sslverify false
Установите это в своей конфигурации, чтобы отключить его только для данного URL, а не для всех запросов.
[http "https://weak.example.com"]
sslVerify = false
http.sslVerify
Следует ли проверять сертификат SSL при получении или передаче по HTTPS.
http.sslCAInfo
Файл, содержащий сертификаты для проверки однорангового узла при получении или передаче по HTTPS.
48
Community
20 Июн 2020 в 09:12
Я нашел сертификат ssl по адресу:
C:Users[USERNAME]AppDataLocalGitHubPortableGit_[portable code]usrsslcerts
Тогда вы можете следовать решению с помощью CodeWizard, т.е.
// Add the certificate to your configuration file
git config --system http.sslcainfo "[LOCATION_SPECIFIED_ABOVE]/cabundle.crt"
1
Community
23 Май 2017 в 11:55
Перейдите в каталог git и переместите папку mingw64 / ssl в mingw64 / libexec / ssl
2
Soyuzbek Orozbek Uulu
27 Июл 2018 в 12:07
Если ваша версия git — 2.8.1.windows.1, это может вам помочь. Во-первых, вам нужно найти домашний каталог git, мой — D: SDK Git. Просто в том же каталоге вы можете найти папку «usr», открыть ее и перейти в ssl certs, вы можете найти сертификат: ca-bundle.crt.
Затем откройте консоль, выполните:
git config --system http.sslcainfo "D:SDKGitusrsslcertscabundle.crt"
2
dav dai
9 Дек 2016 в 14:54
В версии 2.x git-bash путь к .crt изменен на ../Git/mingw64/ssl/certs/ca-bundle.crt. Мне пришлось обновить это вручную в git-bash с помощью
git config --global http.sslcainfo "/path/to/Git/mingw64/ssl/certs/ca-bundle.crt"
13
stiteler
13 Апр 2016 в 20:23
Это сделает всю работу при переходе с клиентов GIT 2.x на 2.5.x:
Похоже, что после установки новой версии клиента GIT он меняет путь поиска сертификатов примерно так:
C:Program FilesGitmingw64
Примерно так:
C:Program FilesGitmingw64libexec
Чтобы исправить это, просто скопируйте папку «ssl» в новое место, и она будет работать как шарм!
2
Naor Bar
31 Окт 2017 в 14:50
В этой ветке много ответов слепого, ведущего слепого. Я здесь еще один слепой, но у меня была такая же проблема, и я решил ее, выполнив эту простую статью. Насколько я понимаю исходный вопрос, git пытается найти файл сертификата SSL, чтобы использовать протокол HTTPS, и не может найти файл. Большинство ответов здесь, похоже, сосредоточены на «ну, тогда просто отключите SSL», а не на правильной замене файла.
Это заклинание должно сгенерировать файл сертификата и поместить его в правильное место для git на cygwin:
$ curl -sL http://ca.pdinc.us > /etc/pki/ca-trust/source/anchors/ca.pdinc.us.pem
&& update-ca-trust
В случае, если вы обезопасили свою конфигурацию git (как и я) и вам нужно установить ее НАЗАД, это должно сделать это:
$ git config --global http.sslcainfo "/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt"
Еще одно примечание, которое может повлиять на многих людей, читающих этот поток: ожидаемое местоположение файла сертификата зависит от того, какой исполняемый файл git вы используете. Поскольку мы говорим о Cygwin, некоторые (большинство?) Из нас, вероятно, также установили собственный вариант git для Windows. Если ваши пути Cygwin настроены на поиск исполняемого файла Windows git, ваш пробег может отличаться в зависимости от того, где указать конфигурацию http.sslcainfo
. Чтобы проверить, какой исполняемый файл подбирается для вас:
$ which git
2
Matthew Marichiba
31 Май 2019 в 04:45
Я столкнулся с тем же сообщением об ошибке, но при клонировании репозитория github, к сожалению, установка http.sslcainfo
не совсем помогла. Так как я оказался за корпоративным прокси-сервером, установка http.proxy
устранила это за меня.
0
Shreyas Murali
8 Фев 2018 в 22:59
Я ранее установил git, а затем удалил его.
Для меня это было так же просто, как переустановить правильную версию git (для меня win x64) из
https://git-scm.com/download/win
0
MemeDeveloper
11 Сен 2020 в 05:05
У меня была такая же ошибка, и я исправил ее, переустановив git по пути по умолчанию:
C: Program Files Git
Вот и все
0
cesarnet
19 Июл 2016 в 10:51
35 / 24 / 12 Регистрация: 18.12.2019 Сообщений: 372 Записей в блоге: 1 |
|
1 |
|
Git Не удалось отправить ветвь в удаленный репозиторий. Дополнительные сведения см. в окне вывода13.11.2020, 10:45. Показов 9899. Ответов 4
Не удалось отправить ветвь в удаленный репозиторий. Дополнительные сведения см. в окне вывода
Открытие репозиториев: Не удалось отправить ветвь в удаленный репозиторий. Дополнительные сведения см. в окне вывода. Не удалось отправить ветвь в удаленный репозиторий. Дополнительные сведения см. в окне вывода. Не удалось отправить ветвь в удаленный репозиторий. Дополнительные сведения см. в окне вывода. Отправка master Ошибка возникла вчера. И сразу же microsoft visual studio попросила ее обновить.
__________________
0 |
8893 / 5668 / 1351 Регистрация: 25.05.2015 Сообщений: 17,216 Записей в блоге: 14 |
|
13.11.2020, 12:32 |
2 |
Обновите студию.
1 |
35 / 24 / 12 Регистрация: 18.12.2019 Сообщений: 372 Записей в блоге: 1 |
|
13.11.2020, 12:48 [ТС] |
3 |
Студию я обновил сразу же. Но проблему это не решило. Еще несколько дней назад загружал на github.com через расширение «GitHub Extension For Visual Studio» для Microsoft Visual Studio: Мне его было достаточно. Хотелось бы продолжить в том же духе.
git for windows поэтому и не ставил, с головой хватало расширения. Полагаю расширение больше не актуально ? Как быть ?
0 |
35 / 24 / 12 Регистрация: 18.12.2019 Сообщений: 372 Записей в блоге: 1 |
|
13.11.2020, 12:50 [ТС] |
4 |
Если что, все расширения обновлены:
0 |
8893 / 5668 / 1351 Регистрация: 25.05.2015 Сообщений: 17,216 Записей в блоге: 14 |
|
13.11.2020, 19:42 |
5 |
Убедитесь, что установлен ключ ssh на ПК и в настройках GitHub.
Как быть ? Уметь работать напрямую с консольным клиентом. Потому что всё остальное — лишь надстройки над ним.
1 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
13.11.2020, 19:42 |
5 |
Recently I came across an excellent blog post from Jethro Seghers that covered getting started with Office 365 PowerShell Automation. In the post Jethro walks through the process of setting up Visual Studio Code to work with Visual Studio Services. The process uses Git as the broker. The end result is that your scripts can be stored in a secure source repository.
In following the post I learned several lessons that I thought I’d share
Recently I came across an excellent blog post from Jethro Seghers that covered getting started with Office 365 PowerShell Automation. In the post Jethro walks through the process of setting up Visual Studio Code to work with Visual Studio Services. The process uses Git as the broker. The end result is that your scripts can be stored in a secure source repository.
In following the post I learned several lessons that I thought I’d share.
Installing GitHub Desktop
When you install GitHub Desktop it will want you to create a repository when it starts up. I recommend that you cancel the pop-up and select ‘Clone a repository’ from the main screen:
One thing that Visual Studio Services does not make easy is to get the URL for your repository. The URL is displayed when you first create a project but thereafter it is not that obvious to find… The easiest way is to go to the ‘Code’ section in Visual Studio Services and then select the relevant project from the ‘Files’ tab. You can then grab the URL from the browser address bar. (You’ll need the full URL inc. the https:// bit):
You can then use the URL to clone the repository:
If this is the first time that you are using Git then I recommend that you manually create a new folder for all of your work somewhere on your local drive (you can do this with File Explorer – no special tools required). DO NOT use OneDrive. If you do use OneDrive you will get file conflict errors when Git attempts to synchronise the local and source repositories.In the image above, all of my repositories are stored as sub-folders in DocumentsGitHub. The other aspect is that the cloning process will want to add the repository as a new folder which uses the repository name. You do not need to use the repository name. You can replace it with something shorter or meaningful. In the earlier Visual Studio Services image you can see that I used spaces when creating the project. This might look good in the browser but in reality those spaces are %20’s and they (a) make the folder path longer (b) look amateurish. Remember the cloning process will not work if a folder of the same name is already present.
Validation
You can validate that the set-up is complete by viewing the ‘History’ tab in GitHub Desktop and performing a ‘Fetch’:
You might notice that the ‘Fetch origin’ state is ‘Never fetched’. Tap on the Fetch origin button and after a brief period where the arrows spin the status should change to ‘Last fetched…’:
If this process fails then it is likely that you have authentication challenges.
Authentication error #1
When cloning or fetching the repository you might encounter an error where you need to sign into Visual Studio Services but for one reason or another your credentials are not accepted. I get that a lot as I have a personal Visual Studio account that shares its primary email address with my work account. As a result when I first set up a clone from my work machine I am redirected to use my work sign-in which promptly fails. The temporary work around is to use a Personal Access token. Once you have Visual Studio Code set up you can delete the Personal Access token as the module in Visual Studio Code does a better job with authentication.
Configuring Visual Studio Code
The process is straight forward – install the extensions and locate the local repository. When you identify the local repository the Visual Studio Team Services module will take over. You can use the ‘Open folder…’ option from the Start screen to browse to your local repository:
On selecting the folder you might be asked to sign into Visual Studio Services. If you’ve resorted to using a Personal Access token when setting up GitHub Desktop you should be able to sign in with your usual credentials rather than the token. Once signed in you can delete the personal token. Once authenticated your files will appear in the Explorer view:
The repository can be updated using the controls in the Sources view:
For example the can be used to commit all changes to the source repository. All should be fine and you can start coding but you might encounter another authentication error when undertaking a pull, push or sync requests…
Authentication error #2
If when pushing, pulling or synchronizing your repository an error like this appears:
then as northerners would say you have “trouble at t’mill”. You can see more (unhelpful) detail by viewing the output by selecting ‘Open Git Log’ from the dialogue. The log is also visible from ellipses in the Sources view.
On inspection of the output you’ll probably spot a ‘error setting certificate verify locations’ error.
This error is associated with the SSL certificates that are bundled with Git. In particular the default ‘ca-bundle.crt’ certificates. Your initial response could be to triage by checking that the certificate is present at the location detailed by the ‘CAfile’ value. My advice is to not bother. It is highly likely that you will find that the path is wrong. It looks like when they updated Git they moved the default location but forgot to change the code. You’ll spend hours working out how to change it to the correct location only for more errors to occur e.g. ‘unable to get local issuer certificate’ . You’ll then spend more time scouring the web and following dead ideas. Do not bother.
The fastest fix is a clean installation of Git and Git Desktop.
- Uninstall Git
- Uninstall Git Desktop
- Restart your machine
- Reinstall Git with administrator rights (this is critical – see later)
- Reinstall Git Desktop
IMHO there are two critical items that combined can cause the error:
- Not installing Git using the ‘Run as administrator’ option
- Using the bundled certificates
As mentioned earlier the path to the bundled certificates is wrong. My recommendation is to use the certificates that are native to your machine as this avoids the path error. As you work through the Git setup screens pay particular attention to this one:
Pick the option to ‘Use the native Windows Secure Channel library’. Choosing the ‘Use the OpenSSL library’ option leads to path problems.
I’ve not tried it but it looks like you can rerun the Git setup using the installer without uninstalling first. If you’d rather dig deeper into solving the issue then I would start with SSL certificate problem: Unable to get local issuer certificate as once you fix the path you’ll probably get a new error or two… Usefully the uninstall process seemingly does not remove the connection details for your repositories and so you will not need to setup Git Desktop or Visual Studio Code again.