Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.5: Enable https on 10.5's Apache2 web server UNIX
This short how-to explains how to get HTTPS/SSL working on Leopard, which uses apache2. First, follow the steps in this hint, but instead of following Step 5, do the following:
  • Edit /private/etc/apache2/httpd.conf, and uncomment the following line (it's line 473 in my installation):
    Include /private/etc/apache2/extra/httpd-ssl.conf
  • Edit /private/etc/apache2/extra/httpd-ssl.conf, and make sure that:
    • SSLCertificateFile points to newcert.pem
    • SSLCertificateKeyFile points to webserver.nopass.key
    • SSLCACertificateFile points to cacert.pem
    • SSLCARevocationPath points to demoCA/crl
    Be sure to include the full pathnames for each entry. Optionally, you can edit DocumentRoot to your liking. I point it to /Library/WebServer/Documents-SSL, so I have two roots, one for http and one for https.
After these steps, restart apache2. Preferably do this from the command line (sudo apachectl graceful), so that you can see if the configuration is accepted or not. After that, point your browser to https://localhost/, and marvel at https beauty.
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[12,799 views]  

10.5: Enable https on 10.5's Apache2 web server | 6 comments | Create New Account
Click here to return to the '10.5: Enable https on 10.5's Apache2 web server' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Enable https on 10.5's Apache2 web server
Authored by: kioarthurdane on Tue, Jul 1 2008 at 7:31AM PDT
For the life of me, I cannot get this to work.

[ Reply to This | # ]
10.5: Enable https on 10.5's Apache2 web server
Authored by: steresi on Thu, Jul 3 2008 at 2:34PM PDT
Where do the certificates come from that you're using? Don't you need to register an SSL certificate in order to use HTTPS?

[ Reply to This | # ]
10.5: Enable https on 10.5's Apache2 web server
Authored by: ekampp on Tue, Dec 23 2008 at 5:39AM PST
@ kioarthurdane: That's not very descriptive, if you need help, you probably need to explain yourself a little more?!

@ steresi: As the article states, the certificates are created using the linked guide.

[ Reply to This | # ]
10.5: Enable https on 10.5's Apache2 web server
Authored by: ciacgi on Mon, Mar 2 2009 at 3:55PM PST
I can't get this to work either. I've followed it exactly twice and am wondering now if it is actually not compatible instructions for 10.5 as it says.

I even try tailing my logs and don't see issues when I restart apache, but it won't serve up https pages (it even kills http pages for that matter).

[ Reply to This | # ]
10.5: Enable https on 10.5's Apache2 web server
Authored by: adamprall on Wed, Sep 30 2009 at 6:25PM PDT
The problem with this hint is here:
SSLCACertificateFile
This path must read like this (not clearly specified above):
SSLCACertificateFile "/Users/yourusername/Documents/certs/demoCA/cacert.pem"

If you followed the instruction like I did, then the first time around you probably pasted in something like "/Users/yourusername/Documents/certs/your.domain.folder/cacert.pem" by mistake for that path.

---
Thinkingman.com New Media Hawaii

[ Reply to This | # ]

10.5: Enable https on 10.5's Apache2 web server
Authored by: adamprall on Wed, Sep 30 2009 at 6:26PM PDT
By the way, this also works with 10.6.1!

---
Thinkingman.com New Media Hawaii

[ Reply to This | # ]