How can I enable a HTTPS connection on my Mac OS?
I am developing a Ruby on Rails application on my Mac OS with "Snow Leopard" 10.6.5 and for this I need to use locally a Hypertext Transfer Protocol Secure (HTTPS) 开发者_如何学Pythonconnection.
How can I set my machine to do that? What I have to install?
I presume you're using the built-in web server enabled when you "enable web sharing". That server is Apache, so google for "enable SSL in Apache".
Short form is that it's easy to do but you need a an x509 certificate, a "cert"; a self-generated cert will work but you'll have to tell your browser to trust it.
Back when I last set up my server, I found Apple´s documentation to be very helpful:
http://developer.apple.com/internet/serverside/modssl.html
精彩评论