Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to create a secure (HTTPS) OS X webserver' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to create a secure (HTTPS) OS X webserver
Authored by: jubalkessler on Dec 11, '04 08:41:48PM

Nice how-to .. I'd elide the cert generation a bit, and just use the single command-line invocation below:

openssl req -days 720 -new -keyout <HOSTNAME>.key -out $<HOSTNAME>.crt -nodes -x509

(where you replace the string "<HOSTNAME>" with the name of the web server, e.g. the name that's in the https:// url.)

The -days string will make it so the cert doesn't expire for 2 years, which I find reasonable for a personal https:// webserver.

The command will produce two files:

your.host.name.crt
your.host.name.key

Place those in a safe location, make sure the key is readable only by root, and reference the full path in Apache .. you're set.



[ Reply to This | # ]