views:

276

answers:

2

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.

A: 

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

wesgarrison
Nice one, thanks. I'm hooked up with SSL now. (Incidentally, trying to get Apache going on SSL was hell so I ended up with Nginx.) Thanks again.
fig
I use lighttp on the one site I've developed that needed SSL. It was painless. Glad you got it working.
wesgarrison
A: 

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.

railsninja
Thanks, ssl_requirement is def needed, but here I just needed to figure out how to actually get SSL on the machine (as opposed to testing for its presence).
fig