如何将 SSL 与 InstantRails 结合起来以实现安全本地开发?
我正在使用 InstantRails(在 Vista 上),并且我正处于寻求将 Rails 应用程序与 PayPal 集成的阶段(通过网络支付标准定期计费 - 不需要 ActiveMerchant)。 为我的本地开发/测试目的启用 HTTPS 的最佳分步过程是什么?
我正在使用 InstantRails 附带的默认 Mongrel/Apache 设置。
预先感谢您的任何帮助。
I'm using InstantRails (on Vista), and I'm at the stage where I'm looking to integrate a Rails app with PayPal (recurring billing via web payments standard - no ActiveMerchant needed). What is the best step-by-step process for enabling HTTPS for my local development/testing purposes?
I'm using the default Mongrel/Apache setup that comes with InstantRails.
Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 openSSL 生成私钥和自签名证书。
这里有很好的说明:http://www.akadia.com/services/ssh_test_certificate.html
OpenSSL 指南:http://www.openssl.org/docs/HOWTO/certificates。文本
Use openSSL to generate a private key and self-signed certificate.
Good instructions here: http://www.akadia.com/services/ssh_test_certificate.html
OpenSSL HOWTO: http://www.openssl.org/docs/HOWTO/certificates.txt
Rails 有一个插件,也称为 ssl_requirement,您可以使用它非常轻松地告诉应用程序哪些操作需要通过 ssl 完成。 非常方便,我认为DHH 写了它。
There is a plugin for rails also called ssl_requirement which you can use to very easily tell the application which actions will need to be done over ssl. It's pretty handy, I think DHH wrote it.