在openSUSE上使用Git时无法使用SSL证书

在openSUSE上使用Git时无法使用SSL证书,git,https,opensuse,Git,Https,Opensuse,我在openSUSE上使用Git,在尝试通过HTTPS克隆Git存储库时收到以下错误 $ 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 我该如何解决这个问题?我是openSUSE新手,

我在openSUSE上使用Git,在尝试通过HTTPS克隆Git存储库时收到以下错误

$ 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

我该如何解决这个问题?我是openSUSE新手,但对其他Linux发行版很熟悉。

系统上可能没有安装根CA证书

从命令行安装证书:

$zypper安装ca证书{,-cacert,-mozilla}

系统上可能未安装根CA证书

从命令行安装证书:

$zypper安装ca证书{,-cacert,-mozilla}