Troubleshooting SSL certificates, Ruby, Mac OS X Yosemite

岁酱吖の 提交于 2019-11-28 12:56:37

问题


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?


回答1:


In my case the problem was the following:

  • Ruby installed as a binary with RVM assumed OpenSSL is in /etc/openssl
  • OpenSSL had been installed with Homebrew to /usr/local/etc/openssl

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

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

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



来源:https://stackoverflow.com/questions/30901864/troubleshooting-ssl-certificates-ruby-mac-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!