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

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

问题描述

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

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?

推荐答案

此问题的解决方案是创建自定义 buildpack.

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

您需要构建一个与将在 Heroku 系统上运行的正确版本的 OpenSSL 链接的 Ruby 版本.为此,您需要使用本地 64 位 Linux 系统或 Heroku 构建服务器.Vulcan 在专门构建 Ruby 时遇到问题,因此在没有合适的本地机器的情况下执行此操作的最佳方法是使用 Heroku push 从一个带有基于源代码的构建包的空目录.然后,您可以从生成的 slug 中提取二进制文件,并将它们与更快的二进制 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.

我已经在这里发布了我的 buildpack.它目前正在运行并提供带有 OpenSSL 1.0.1e 的 Ruby 2.0.0.

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天全站免登陆