Git clone: Problem with the SSL CA cert

From lxadm | Linux administration tips, tutorials, HOWTOs and articles
Jump to: navigation, search

If you're getting the following error when cloning a git repository:

$ git clone https://gitlab.com/mailman/mailman-bundler.git
Cloning into 'mailman-bundler'...
fatal: unable to access 'https://gitlab.com/mailman/mailman-bundler.git/': Problem with the SSL CA cert (path? access rights?)


You may be missing ca-certificates package on your system (which was probably newly installed).

To fix (on Ubuntu or Debian systems):

# apt-get install ca-certificates

And retry the git command:

$ git clone https://gitlab.com/mailman/mailman-bundler.git
Cloning into 'mailman-bundler'...
remote: Counting objects: 446, done.
remote: Compressing objects: 100% (298/298), done.
remote: Total 446 (delta 254), reused 300 (delta 144)
Receiving objects: 100% (446/446), 135.76 KiB | 0 bytes/s, done.
Resolving deltas: 100% (254/254), done.
Checking connectivity... done.