【问题标题】:Ruby RestClient SSL cannot verifyRuby RestClient SSL 无法验证
【发布时间】:2018-07-31 13:34:14
【问题描述】:

我在两个域上使用应用程序: 域名.com, 不同域名.com

RestClient 来自应用程序的所有调用均在 differentdomain.com 上完成。现在我正在切换到 domain.com 的调用,因为不需要有两个不同的域。

所以我创建了子域 different.domain.com。我有有效的 SSL 证书(带通配符),用 nginx 服务器正确设置。

当我在浏览器中输入 different.domain.com 时,我会看到带有有效 ssl 证书的页面。它工作正常,没有任何错误。

问题是当我试图通过 RestClient 调用子域时。我收到此错误:

RestClient::SSLCertificateNotVerified (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

我需要在其他地方更新证书/密钥吗?

【问题讨论】:

    标签: ruby-on-rails openssl


    【解决方案1】:

    通常,此 SSL 错误表示证书安装中存在一些问题,例如缺少 intermediate certificate。您可以从https://www.ssllabs.com/ssltest/analyze.html 验证您的 ssl 证书

    如果您看到“链问题:不完整”,您很可能需要重新安装中间证书 (https://community.qualys.com/thread/11685)

    试一试。

    【讨论】:

      猜你喜欢
      • 2012-03-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-21
      • 1970-01-01
      • 2013-12-06
      • 2010-11-30
      • 2011-08-19
      • 2017-05-27
      相关资源
      最近更新 更多