emAmazed / redlamp

Bloggie Bloggie
MIT License
0 stars 1 forks source link

Set up SSL website #15

Open emAmazed opened 9 years ago

emAmazed commented 9 years ago

Create a self-signed SSL Certificate


Generate a private key

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

Remove passphrase from key

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

Generate a self-signed certificate

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

Install private key and certificate (on CentOS)

SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key

Restart Apache

emAmazed commented 6 years ago

Most recent docs: https://www.akadia.com/services/ssh_test_certificate.html