Craig M. Brandenburg
Craig M. Brandenburg

Reputation: 3644

Cannot use SSL certificate when using Git on openSUSE

I'm using Git on openSUSE and receive the following error when trying to clone a Git repository via HTTPS.

$ git clone https://example.com/foo.git
Cloning into 'foo'...
fatal: unable to access 'https://example.com/foo.git/': SSL certificate problem: unable to get local issuer certificate

How do I fix this? I'm an openSUSE novice but am knowledgeable of other Linux distros.

Upvotes: 1

Views: 1387

Answers (1)

Jeremy Wright
Jeremy Wright

Reputation: 200

The Root CA certificates are likely not installed on the system.

Install the certificates from the command line:

$ zypper install ca-certificates{,-cacert,-mozilla}

Upvotes: 5

Related Questions