Ruby 每小时cron消息重新打开SSL证书使用错误

Ruby 每小时cron消息重新打开SSL证书使用错误,ruby,ssl,cron,ssl-certificate,homebrew,Ruby,Ssl,Cron,Ssl Certificate,Homebrew,几天前,我正在构建一个ruby应用程序,它必须使用OpenSSL访问网页。它一直无法连接到网站,所以我去了stackoverflow,经过大量研究,我得出结论,我的OpenSSL在0.9.8zc版本已经过时。我做了建议的更改,下面提供了详细信息,之后我的应用程序能够阅读上述网站的文本 今天我发现,自从我从4月12日08:00:01开始进行这些更改以来,我的系统几乎每小时都会生成一条错误邮件。以下是最新邮件的内容: From SamShiffman@Samuels-MBP.PK5001Z Thu

几天前,我正在构建一个ruby应用程序,它必须使用OpenSSL访问网页。它一直无法连接到网站,所以我去了stackoverflow,经过大量研究,我得出结论,我的OpenSSL在0.9.8zc版本已经过时。我做了建议的更改,下面提供了详细信息,之后我的应用程序能够阅读上述网站的文本

今天我发现,自从我从4月12日08:00:01开始进行这些更改以来,我的系统几乎每小时都会生成一条错误邮件。以下是最新邮件的内容:

From SamShiffman@Samuels-MBP.PK5001Z  Thu Apr 16 12:00:01 2015
X-Original-To: SamShiffman
Delivered-To: SamShiffman@Samuels-MBP.PK5001Z
From: SamShiffman@Samuels-MBP.PK5001Z (Cron Daemon)
To: SamShiffman@Samuels-MBP.PK5001Z
Subject: Cron <SamShiffman@Samuels-MBP> /usr/local/Cellar/openssl-osx-ca/1.0.4/bin/openssl-osx-ca /usr/local/bin/brew
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=SamShiffman>
X-Cron-Env: <USER=SamShiffman>
X-Cron-Env: <HOME=/Users/SamShiffman>
Date: Thu, 16 Apr 2015 12:00:01 -0700 (PDT)

Usage error; try -help.
rehash failed to verify, something is wrong
check /tmp/openssl-osx-ca.f9SEDVyI/cert.pem for problems
在此之后,我仍然无法连接到上述网站。经过更多的研究,我在stackoverflow中发现了一个帖子,其中提到了一个工具作为可能的修复。我跑:

$ brew tap raggi/ale
$ brew install openssl-osx-ca
>==> Installing openssl-osx-ca from raggi/homebrew-ale
>==> Downloading https://github.com/raggi/openssl-osx-ca/archive/1.0.4.tar.gz
>######################################################################## 100.0%
>==> make install PREFIX='/usr/local/Cellar/openssl-osx-ca/1.0.4' BREW='/usr/loca
==> Caveats
>To uninstall remove the openssl-osx-ca line from your crontab. e.g.

>    (crontab -l | grep -v openssl-osx-ca) | crontab -
>==> Summary
>I upgraded brew, reinstalled openssl and recreated symlinks:

$ brew update
$ brew doctor
Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:

    openssl

$ brew reinstall openssl
$ brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.2a-1... 1543 symlinks created

$ brew upgrade
$brew塔普拉吉啤酒/麦酒 $brew安装openssl osx ca >==>从raggi/homebrew ale安装openssl osx ca >==>下载https://github.com/raggi/openssl-osx-ca/archive/1.0.4.tar.gz > 100.0% >==>make install PREFIX='/usr/local/ceral/openssl osx ca/1.0.4'BREW='/usr/loca ==>注意事项 >要卸载,请从crontab中删除openssl osx ca行。例如 >crontab-l | grep-v openssl osx ca | crontab- >==>摘要
> 我升级了brew,重新安装了openssl并重新创建了符号链接:

cron守护进程邮件停止了!从那以后一直在摇滚

$ brew tap raggi/ale
$ brew install openssl-osx-ca
>==> Installing openssl-osx-ca from raggi/homebrew-ale
>==> Downloading https://github.com/raggi/openssl-osx-ca/archive/1.0.4.tar.gz
>######################################################################## 100.0%
>==> make install PREFIX='/usr/local/Cellar/openssl-osx-ca/1.0.4' BREW='/usr/loca
==> Caveats
>To uninstall remove the openssl-osx-ca line from your crontab. e.g.

>    (crontab -l | grep -v openssl-osx-ca) | crontab -
>==> Summary
>I upgraded brew, reinstalled openssl and recreated symlinks:

$ brew update
$ brew doctor
Binaries provided by keg-only formulae may override system binaries
with other strange results.

You may wish to `brew unlink` these brews:

    openssl

$ brew reinstall openssl
$ brew link openssl --force
Linking /usr/local/Cellar/openssl/1.0.2a-1... 1543 symlinks created

$ brew upgrade