-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Cant clone from GitHub : SSL certificate problem: unable to get local issuer certificate #9293
Comments
@dineshdixitgit this error can be caused by a few things -- are you running any security software on your machine that could be interfering with your connection to GitHub? Some security software will man-in-the-middle your connection. You can also check out this issue thread #3684 for some specific steps to debug this issue. To check if there are any configuration issues on your machine it would be helpful if you could open up Git for Windows and run the following command:
Let me know the output of that. |
Hi GitHub Team,
Please find trace as below-
DINESH.DIXIT@LP-B1NY0Z2 MINGW64 /c/code/GitHub/gcdm (GCDM_CORE_152.00_MISC)
$ git config -l --show-origin
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig diff.astextplain.textconv=astextplain
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig filter.lfs.required=true
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig http.sslbackend=openssl
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig http.sslcainfo=C:/Users/dinesh.dixit/AppData/Local/Programs/Git/mingw64/ssl/certs/ca-bundle.crt
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig core.autocrlf=true
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig core.fscache=true
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig core.symlinks=false
file:C:/Users/dinesh.dixit/AppData/Local/Programs/Git/etc/gitconfig credential.helper=manager
file:C:/Users/dinesh.dixit/.gitconfig filter.lfs.required=true
file:C:/Users/dinesh.dixit/.gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Users/dinesh.dixit/.gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Users/dinesh.dixit/.gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Users/dinesh.dixit/.gitconfig user.name=dineshdixitgit
file:C:/Users/dinesh.dixit/.gitconfig user.email=42814589+dineshdixitgit@users.noreply.github.com
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=false
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.symlinks=false
file:.git/config core.ignorecase=true
file:.git/config submodule.active=.
file:.git/config remote.origin.url=https://github.com/wmgdsp/gcdm.git
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master
file:.git/config branch.GCDM_CORE_151.00_S1.remote=origin
file:.git/config branch.GCDM_CORE_151.00_S1.merge=refs/heads/GCDM_CORE_151.00_S1
file:.git/config branch.GCDM_CORE_141.00_API.remote=origin
file:.git/config branch.GCDM_CORE_141.00_API.merge=refs/heads/GCDM_CORE_141.00_API
file:.git/config branch.GCDM_CORE_152.00_MISC.remote=origin
file:.git/config branch.GCDM_CORE_152.00_MISC.merge=refs/heads/GCDM_CORE_152.00_MISC
DINESH.DIXIT@LP-B1NY0Z2 MINGW64 /c/code/GitHub/gcdm (GCDM_CORE_152.00_MISC)
$ git status
On branch GCDM_CORE_152.00_MISC
Your branch is up to date with 'origin/GCDM_CORE_152.00_MISC'.
nothing to commit, working tree clean
DINESH.DIXIT@LP-B1NY0Z2 MINGW64 /c/code/GitHub/gcdm (GCDM_CORE_152.00_MISC)
Thanks,
Dinesh Dixit
WMG-GCDM HCL Team
Cell: +91-80760-53933
|
@dineshdixitgit it looks like you have |
Hi Steve, $ git config --global http.sslBackend "openssl" $ git config --global http.sslBackend "schannel" |
The 'revocation' error is usually caused by your network blocking the attempt by Windows to check the revocation status of a certificate, which then causes the whole operation to error. You can find a workaround for this issue here: Let me know if that doesn't get things working for you. |
D:\Rajiv\microservice>git config -l --show-origin |
I have the above settings and not able to clone too |
@rajivsharma2022 are you encountering the |
HI @steveward, |
@KDS717 are you running any antivirus software on your system that could be causing this? We've seen specific antivirus software like Kaspersky cause this as well. You can also skip the revocation check by running this command:
See this section of our known issues doc for reference. |
I solved the error, follow the link |
My issues resolved by applying git config --global http.sslBackend schannel on git bash |
This worked for me on my corporate machine - I was cloning from my own GitHub repo. I made sure to revert it to Edit: I would instead now recommend adding the |
Hi. Thanks to this, worked for me. My setup is: I have a VPN running which serves as a middleware ( company requirement ) and it blocks any access that's not listed on my policy. |
|
Yes.. Even my issue got resolved, after setting that one |
excellent .. My Issue also resolved after settig git config --global http.sslBackend schannel |
Having same issue but using a MAC. Any thoughts as I dont get the same info when running |
I now know you shouldn't do this! |
remote: Password authentication is not available for Git operations. I think tis the enterprise (work) account so ill see if its that |
Ok, good luck. |
Yup - last thing i had to do was make a PAT instead of using my github password. Then i used the line above from you and it worked. Thanks so much.
remote: Enumerating objects: 48, done. |
If this happened after you installed a python version manually, inside the python app folder, double click on the "Install Certificates.command" file and it should fix it. |
Solved with follow command: |
Solved the question with follow cmd: |
Applied changes to git with code below to solve this error: git config --global http.sslVerify false |
Cloning into 'ToDoList-Core'... |
@TamarShayo if you look at my first two comments in this issue you can follow those steps to see if that could be the cause of your SSL issues. |
Thank you! |
If you're encountering an SSL certificate problem while trying to clone a repository from GitHub, the issue is likely related to the SSL certificate configuration on your system. This error message often indicates that Git is unable to verify the authenticity of the SSL certificate presented by the GitHub server. Here are some steps you can take to resolve the issue: Update Git: Check System Date and Time: Configure Git to Use the System Certificate Store (Windows Only):
Reinstall Git Certificate Authorities (Windows Only):
Use SSH Instead of HTTPS (Recommended): Check Proxy Settings:
If none of the above solutions work, there might be other network-related issues or firewall configurations interfering with the connection. In that case, you may want to consult with your network administrator or internet service provider for further assistance. |
Hi, I was getting the same ssl related issue while cloning the repo on local system, post running below command my this issue got fixed. |
I have the same issue but it's in runner. My issue disappeared after restarting my server. For further information about the problem, click this link. https://vishalvyas.com/gitlab-unable-to-get-local-issuer-certificate |
|
"I would instead now recommend adding the @geologyrocks I wrote exactly the same argument in my corporate machine and worked! THX |
I have since learned the error of my ways this is now the right way to do it (as @Rayisabc suggested): |
What is the solution of this problem? (i don't know because i am a beginner.) |
Hi Team, We got same error as given above,
Successfully resolved error after run these commands:
After command got run successfully, I can clone the repository from GitHub.
Thank You all of you my friends those involved here...!!! |
you can try to run this: |
Hey, I've run into that SSL certificate issue before! It usually means your system doesn’t trust the certificate authority that issued the SSL certificate for GitHub. One quick fix is to update your Git installation to ensure it has the latest CA certificates. If you're using Windows, sometimes adding Git to the system PATH during installation helps. Alternatively, setting up your Git repo on Cloudways can make things smoother since their servers handle SSL certificates efficiently. Definitely check out this article for a deeper dive into solving these SSL certificate issues. Trust me, it’s super helpful! |
after running this command i solved ssl issue but i'm still getting error it showing
How to resolve???? |
Describe the feature or problem you’d like to solve
DINESH.DIXIT@LP-B1NY0Z2 MINGW64 /c/code/GitHub2
$ git clone https://github.com/dineshdixitgit/meta-api.git
Cloning into 'meta-api'...
fatal: unable to access 'https://github.com/dineshdixitgit/meta-api.git/': SSL certificate problem: unable to get local issuer certificate
A clear and concise description of what the feature or problem is.
Proposed solution
How will it benefit Desktop and its users?
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
The text was updated successfully, but these errors were encountered: