开发者

How can I enable a HTTPS connection on my Mac OS?

开发者 https://www.devze.com 2023-02-02 11:50 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消