简体   繁体   中英

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) connection.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM