Open SSL On Apache
Before installation
my web pages look like this:
Step:Now I am going to install ssl :
#yum
install mod_ssl
Step:Then install
open ssl:
#yum install openssl
Step:Generate a private key with 2048 bit encription:
#openssl genrsa -out ca.key 2048 Step:Then generate the certificate signing request (CSR) by using the following command. # openssl req -new -key ca.key -out ca.csr Step:Generate a self-signed certificate of X509 type which remains active for 365 days. #openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt Step:After generating the certificates, copy the files to the necessary directory. # cp ca.crt /etc/pki/tls/certs #cp ca.ke
#cp ca.csr /etc/pki/tls/private
Step:
Now edit the secure web server configuration file and add the below lines into bottom of file.
#vim /etc/httpd/conf.d/ssl.conf
Step:
check http configration.
# httpd -t
Step: open http conf and add these at end of the file as in screen shot:
Step:
Add
the service and
the port
number to
the firewall
Step:restart
the appache
Step:check
on url:
Comments
Post a Comment