Hi,
I've found plenty of answers for how to fix this problem with a self-signed certificate, but I'm using a CA-signed certificate so I'm not entirely sure what's going wrong.
Running "git pull" from a windows machine results in the error:
"fatal: unable to access 'https://<url>:7990/bitbucket/scm/proj/<repository>.git/': SSL certificate problem: unable to get local issuer certificate"
Connecting via SourceTree results in the same error.
The machine running the bitbucket server is also running an apache server using the same certificate. I can access both the apache server and the bitbucket server with Chrome, IE and Edge on Windows and with Chrome and Safari on MacOS, with no SSL errors.
Running the same "git pull" from MacOS works without any errors both from the command line and through SourceTree.
Extra information:
Any help would be very gratefully received!
Kind regards,
Charles
So that I can mark this question as having an answer, I'm copying the workaround instructions here:
Saved me from despairing. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This saved hours, if not days, of finding a solution to this problem and I logged in specifically to upvote this answer! Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Charles and welcome to the Community!
Looks like you have your Bitbucket setup using SSL almost without issue, minus the GIT and Sourcetree errors. The good news is it looks like a simple problem with the CA signed cert. There is a KB written just for this exact issue. The resolution within the KB is as follows:
There are several ways this issue has been resolved previously:
git config --system http.sslCAPath /absolute/path/to/git/certificates-- or copying the CA bundle to the /bin directory and adding the following to the
gitconfig
file:sslCAinfo = /bin/curl-ca-bundle.crt
Reinstalling Git.
Ensuring that the complete CA is present, including the root cert.
Source KB: SSL certificate problem: Unable to get local issuer certificate
If you’re still having issues with GIT after following the above, please let us know and we’ll be happy to provide further help to get you up and running.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
Thanks for your reply - I've been away for a while so I apologise for the delay in getting back to you. I tried option 1 but noticed that the root certificate is already in the certificate store - it's signed by the GlobalSign Root CA.
The git config variables appear to be pointing to the correct ca-bundle.crt file too, it's not that.
I tried updating to the latest version of git, both the bundled version in SourceTree and the command line version, but that didn't help either.
Finally, I tried reinstalling the command-line git but switched from the "Use the OpenSLL Library" to the "Use the native Windows Secure Channel library", then switched SourceTree to use the system version rather than the bundles version and that has finally got it working.
Kind regards,
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.