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?
我正在使用InstantRails(在Vista上),我正处于我想要将Rails应用程序与PayPal集成的阶段(通过Web支付标准定期计费 - 不需要ActiveMerchant)。为本地开发/测试目的启用HTTPS的最佳分步流程是什么?
I'm using the default Mongrel/Apache setup that comes with InstantRails.
我正在使用InstantRails附带的默认Mongrel / Apache设置。
Thanks in advance for any help.
在此先感谢您的帮助。
2 个解决方案
#1
Use openSSL to generate a private key and self-signed certificate.
使用openSSL生成私钥和自签名证书。
Good instructions here: http://www.akadia.com/services/ssh_test_certificate.html
这里有好的指示:http://www.akadia.com/services/ssh_test_certificate.html
OpenSSL HOWTO: http://www.openssl.org/docs/HOWTO/certificates.txt
OpenSSL HOWTO:http://www.openssl.org/docs/HOWTO/certificates.txt
#2
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.
还有一个名为ssl_requirement的rails插件,您可以使用它来非常轻松地告诉应用程序需要在ssl上执行哪些操作。它非常方便,我认为DHH写了它。
#1
Use openSSL to generate a private key and self-signed certificate.
使用openSSL生成私钥和自签名证书。
Good instructions here: http://www.akadia.com/services/ssh_test_certificate.html
这里有好的指示:http://www.akadia.com/services/ssh_test_certificate.html
OpenSSL HOWTO: http://www.openssl.org/docs/HOWTO/certificates.txt
OpenSSL HOWTO:http://www.openssl.org/docs/HOWTO/certificates.txt
#2
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.
还有一个名为ssl_requirement的rails插件,您可以使用它来非常轻松地告诉应用程序需要在ssl上执行哪些操作。它非常方便,我认为DHH写了它。