views:

27

answers:

1

I'm fairly new to Mac I want to enable SSL on my Mac (10.6.4) for some local development. In searching for an answer, I ran across Using mod_ssl on Mac OS X. However, this Apple developer support document looked out of date. In further searching, I ran across Configuring mod_ssl on Mac OS Snow Leopard which basically asked the same question I am asking, but had no replies. It stated those instructions for were for "Mac 10.2/Apache 1.3" and not for a "Mac 10.6/Apache 2" system.

I've worked with Apache before, but never configured SSL. I am sure I will figure it out, but I thought I would ask here first.

A: 

Here's the changes I made to /private/etc/apache2/http.conf

Updated this line to include my email address

ServerAdmin [email protected]

Uncommented this line, and made sure it matched my servername (e.g. XXX.local)

#ServerName www.example.com:80

Uncommented this line

#Include /private/etc/apache2/extra/httpd-ssl.conf

In /private/etc/apache2/extra/httpd-ssl.conf I also updated ServerAdmin and ServerName and copied my .crt and .key to the locations configured in the file.

SSLCertificateFile "/private/etc/apache2/server.crt"
SSLCertificateKeyFile "/private/etc/apache2/server.key"
Kevin Hakanson