Basically it boils down to creating a file with your passphrase in it and then pointing apache to it. Since we love Ruby around here, we'll show you how to create the passphrase script using it.
Save that somewhere and then add this to your /etc/apache2/httpd.conf file:
Lastly, let's make sure that file is executable:
sudo chmod +x /path/to/passphrase
That should be it. Let's stop apache and then start it again:
sudo apache2ctl stop
sudo apache2ctl start
If all went well, you weren't asked for a passphrase and your apache server is still running!
There are some disadvantages though. One of the biggest reasons to put a passphrase in your ssl cert is to prevent it from being hijacked. If a cracker can get into your server and take the cert he/she might be also able to get your passphrase file. That's no good. So be sure to put your passphrase somewhere secure and protect your server.