Make Apache use SSL
openssl genrsa -out ca.key 2048
openssl req -new -key ca.key -out ca.csr
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
cp ca.crt /etc/pki/tcl/certs/ca.crt
cp ca.key /etc/pki/tcl/private/ca.key
cp ca.csr /etc/pki/tls/private/ca.csr
vi +/SSLCertificateFile /etc/httpd/conf.f/ssl.conf and change:
SSLCertificateFile /etc/pki/tlc/certs/ca.crt
SSLCertificateFile /etc/pki/tlc/private/ca.key
Now restart your web-server and use https
No comments:
Post a Comment