Create SSL CA for Apache
From Urandom
Generate keys and cert
This is how to make SSL keys suitable for apache web server or others. Web browsers will complain about security, but it is good for testing or personal use.
openssl req -newkey rsa:2048 -x509 -sha256 -days 365 -nodes -out site.pem -keyout site.key
Configure apache
In your SSL apache conf set these:
SSLCertificateFile /path/to/certs/site.pem SSLCertificateKeyFile /path/to/certs/site.key