Heroku上的OpenSSL 1.0.1 [英] OpenSSL 1.0.1 on Heroku

查看:151
本文介绍了Heroku上的OpenSSL 1.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用运行于针对支持AES-GCM的OpenSSL 1.0.1c构建的Ruby 2.0.0上。 Heroku似乎使用OpenSSL 0.9.8k(请参阅 https://twitter.com/sferik/status/314495375555829760 )。有没有什么办法可以升级到1.0.1?

解决方案

这个问题的解决方案是创建一个自定义buildpack。

您需要构建一个与Heroku的系统上运行的正确版本的OpenSSL链接的Ruby版本。为此,您需要使用本地64位Linux系统或Heroku构建服务器。 Vulcan在构建Ruby时存在问题,因此在没有合适的本地计算机的情况下,最好的方法是使用 Heroku用一个基于源代码的buildpack从一个空目录推入。然后你可以从结果中提取二进制文件,并使用更快的二进制buildpack来使用它们。



我已在此处发布我的buildpack 。它目前正在运行,并提供了带有OpenSSL 1.0.1e的Ruby 2.0.0。


My app runs on Ruby 2.0.0 built against OpenSSL 1.0.1c for AES-GCM support. Heroku appears to be using OpenSSL 0.9.8k (see https://twitter.com/sferik/status/314495375555829760). Is there any way to upgrade to 1.0.1?

解决方案

The solution to this problem is to create a custom buildpack.

You need to build a version of Ruby linked against the correct version of OpenSSL that will run on Heroku's system. For this, you need to use either a local 64-bit Linux system or a Heroku buildserver. Vulcan has problems building Ruby specifically, so the best way to do this in the absence of an appropriate local machine is to use Heroku push from an empty directory with a source-based buildpack. Then you can extract the binaries from the resulting slug and use them with a much faster binary buildpack.

I've posted my buildpack here. It is currently working and provides Ruby 2.0.0 with OpenSSL 1.0.1e.

这篇关于Heroku上的OpenSSL 1.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆