Create SSL CA for Apache

From Urandom
Revision as of 18:08, 6 April 2015 by Martivo (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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