The legal tricks-Learn Your Self

Latest gadgets,softwares,hardware,reviews,programming and campuses, game cheats ext......

Enable https on 10.5's Apache2 web server

This short how-to explains how to get HTTPS/SSL working on Leopard, which uses apache2. 

Edit /private/etc/apache2/httpd.conf, and uncomment the following line (it's line 473 in my installation): 

Quote:
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.

0 comments: