在 openSUSE 上使用 Git 时无法使用 SSL 证书
Cannot use SSL certificate when using Git on 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 install ca-certificates{,-cacert,-mozilla}
我在 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 install ca-certificates{,-cacert,-mozilla}