SSL certificate creation

Regular certificate

openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr

Get the .csr sign by your CA

Self-signed certificate

openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Apache directives.

SSLEngine on
SSLCertificateFile /path/to/server.crt
SSLCertificateKeyFile /path/to/server.key
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License