[ User ] Login

Bug 115: CLOSED

SSL certificate issues

Date: 2014-03-03 15:06 - Creator: necrophcodr - Priority standard - 2 messages

Working with git has been a pleasure, but when it comes to slitaz, there 
seems to be certain issues with secure connections.
Cloning a simple repository from github, doesn't work at all.

Reproducability:
1: Install cacerts and git
2: $ git clone https://github.com/visionmedia/mon

Result:
Cloning into 'mon'...
fatal: unable to access 'https://github.com/visionmedia/mon/': SSL 
certificate problem: unable to get local issuer certificate

Affected package(s): git

Messages

By: metalx1000 on 2019-03-27 19:49

I see this has been closed, but with no explanation.
I was about to file the same bug when I thought to double check and make sure 
there wasn't already one.

@necrophcodr, to get it to work you need two packages, git and cacerts
sudo tazpkg get-install git cacerts

then you need to tell git to use those certificates.
git config --global http.sslCAinfo /etc/ssl/ca-bundle.crt

After that you should be all set.
I get that Slitaz is suppose to be small and slim, which is my guess as to why 
the git package doesn't install cacerts as a dependence, and if the server 
you are using doesn't require ssl, the certs aren't needed. But I would 
think in most cases it would be wanted. I think that the git package should ask 
if you want to install the certs or at lest suggest you install it.

If the package maintainer could chime in and let us know more on this topic, 
that would be appreciated.

By: hgt on 2019-03-31 15:40

With git-2.21.0 there is now a package in the cooking repository, that has 
the dependency to cacerts.