ruby-on-rails - 在 Windows 中使用 Puma 通过 ssl 运行 Rails App

标签 ruby-on-rails windows ssl puma

我正在尝试在 Windows ServerR2 中使用 Puma over ssl 运行我的 Rails 应用程序。我遵循了 this question 的答案.我已经使用 SSL 目录安装了 puma,并且使用

运行了 puma
>puma -b 'ssl://127.0.0.1:3000?cert=C:\Sites\server.crt&&key=C:Sites\server.key' -e development -S puma -C config\puma.rb

此外,我还使用 this link 创建了证书和 key .但是我得到了错误

C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/puma-2.15.3/lib/puma/binder.rb:131:in `check': SSL not available in this build (StandardError)

最佳答案

在 rails 5.2.3 和 puma 3.12 中运行良好

gem uninst puma
ridk exec pacman -S mingw-w64-x86_64-openssl
gem inst puma

关于ruby-on-rails - 在 Windows 中使用 Puma 通过 ssl 运行 Rails App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44510030/

相关文章:

linux - Delphi/windows 和 Linux/Lazarus 共享字符以上#127

windows - POVRY for windows : using the command line to render several pov files

c++ - 使用 FSCTL_LOCK_VOLUME 锁定驱动器

使用 Jsoup 时,Java 11 HTTPS 连接失败并出现 SSL HandshakeException

Python 脚本失败,出现 ('Connection aborted.' , ConnectionResetError(104, 'Connection reset by peer' ))

ruby-on-rails - Rails - 一种形式到两种模型

ruby-on-rails - 带标签的Rails类别导航

mysql - 设计助手返回零

javascript - 如何通过 jquery 更改输入名称的一部分?

ssl - Nginx 需要 URL 上的端口 433