安装 Jekyll 时出现此错误:
C:\WINDOWS\system32>c:\Ruby263-x64\bin\gem.cmd install jekyll --version 3.8.6
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /O=Humana Inc./CN=Humana Enterprise Root CA 3 to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /O=Humana Inc./CN=Humana Enterprise Root CA 3 to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /O=Humana Inc./CN=Humana Enterprise Root CA 3 to your local trusted store
ERROR: Could not find a valid gem 'jekyll' (= 3.8.6), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (https://rubygems.org/specs.4.8.gz)
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /O=Humana Inc./CN=Humana Enterprise Root CA 3 to your local trusted store
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /O=Humana Inc./CN=Humana Enterprise Root CA 3 to your local trusted store
答案1
我无法发表评论,但请尝试访问https://rubygems.org查看您的浏览器是否提示您安装/信任他们的 SSL 证书。