Create /root/httpdkey:
#!/bin/sh echo 'my secret password'
Make sure only root has access:
chmod 700 /root/httpdkey
Use an external SSLPassphraseDialog:
SSLPassphraseDialog exec:/root/httpdkey
Manual