Install And Configuration openSSL Certificate to Apache

Need :

Apache Httpd as Web Server, OpenSSL.

[1]  Make Key with RSA encryp hash 1024

openssl genrsa -des3 -out ssm.key 1024
[2] Make Certificate Signing Request (CSR) Management.

openssl req -new -key ssm.key -out ssm.csr
[3] Make a self-signed certificate

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

2 file important, ssm.key and ssm.crt.

on file /etc/httpd/httpd-ssl.conf adjust config

SSLCertificateFile “/etc/httpd/ssm.crt”

SSLCertificateKeyFile “/etc/httpd/ssm.key

[Important] Enable Module ssl /etc/httpd/httpd.conf :

LoadModule ssl_module lib64/httpd/modules/mod_ssl.so
Include /etc/httpd/extra/httpd-ssl.conf #for ssl Load

Stop and Start Apache

apachectl stop

apachectl start