Generate a host key

First, make a home for the new SSL files—I use /etc/apache2/ssl. Open up
a terminal window, cd to the new directory and issue the following command to
create a host key file.

sudo ssh-keygen -f host.key

Generate a certificate request file

This command will create a certificate request file. A certificate request file
contains information about your organization that will be used in the SSL
certificate. The command will ask you a bunch of questions; because this is for
local development, nonsense will suffice.