本文介绍了对SSL证书,Ruby,Mac OS X Yosemite进行故障排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

在OS X Mavericks上,当我尝试连接到各种API时,我从Ruby程序中收到以下错误:

On OS X Mavericks, I am getting the following error from my Ruby programs when I try to connect to various APIs:

Seahorse::Client::NetworkingError: SSL_connect returned=1 errno=0
    state=SSLv3 read server certificate B: certificate verify failed

对此的推荐解决方案是什么?

What is the recommended solution to this?

推荐答案

在我的情况下,问题如下:

In my case the problem was the following:

  • 假设OpenSSL位于/etc/openssl中,则将Ruby与RVM作为二进制文件安装
  • OpenSSL已与Homebrew一起安装到/usr/local/etc/openssl

=>不匹配;和符号链接/etc/openssl->/usr/local/etc/openssl没有帮助.

=> Mismatch; and symlinking /etc/openssl -> /usr/local/etc/openssl did not help.

从源代码编译RVM Ruby:rvm install VERSION --disable-binary

Compile RVM Ruby from sources:rvm install VERSION --disable-binary

之后,请确保您的证书是最新的:rvm osx-ssl-certs update

After that, make sure your certificates are up-to-date:rvm osx-ssl-certs update

这篇关于对SSL证书,Ruby,Mac OS X Yosemite进行故障排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 08:36