Table of Contents

Apache - Installation of a Private Key and Certificate (mod_ssl)

About

mod_ssl Apache - Module

Prerequisites

Steps

When Apache with mod_ssl is installed, it creates several directories in the Apache config directory.

cp server.crt /usr/local/apache/conf/ssl.crt
cp server.key /usr/local/apache/conf/ssl.key
SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog logs/ssl_request_log \
   "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
/etc/init.d/httpd stop
/etc/init.d/httpd stop

https://hostname

Documentation / Reference