Fedora 8:rubygems.org 证书验证失败。如何安装 GeoTrust CA?

Fedora 8:rubygems.org 证书验证失败。如何安装 GeoTrust CA?

尝试获取宝石:

$gem install puppet
ERROR:  Could not find a valid gem 'puppet' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)

我查看了 ruby​​gems.org 使用的证书:

$openssl s_client -showcerts -connect rubygems.org:443 
...
Certificate chain
0 s:/serialNumber=RRAXldgzDrRZWQpGo6FHdTHV3qwvwXtD/OU=GT35895174/OU=See www.rapidssl.com/resources/cps (c)13/OU=Domain Control Validated - RapidSSL(R)/CN=*.rubygems.org
  i:/C=US/O=GeoTrust, Inc./CN=RapidSSL CA
...
1 s:/C=US/O=GeoTrust, Inc./CN=RapidSSL CA
  i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
...

因此我下载了 GeoTrust CA:

$wget http://www.geotrust.com/resources/root_certificates/certificates/GeoTrust_Global_CA.pem

现在我只剩下最后一项任务,安装此 CA。但我找不到正确的方法。具体来说,使用certutil如所述这里

$cd /var/lib/instance_name/alias
$certutil -A -n cert-name -t trustargs -d . -a -i certificate_file

我的旧 Fedora 8 系统没有/var/lib/instance_name/alias“子系统安全数据库目录”,而且我确实找不到它。

有什么提示吗?

答案1

您是否尝试过安装ca-certificates(通过sudo yum install ca-certificates)?如果已安装,您可以尝试重新安装。

相关内容