2015-10-26 30 views
1

我在openSUSE上使用Git並在嘗試通過HTTPS克隆Git存儲庫時收到以下錯誤。在openSUSE上使用Git時不能使用SSL證書

$ 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發行版非常瞭解。

回答

2

根CA證書可能未安裝在系統上。

從命令行安裝的證書:

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