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

Card Puncher Data Processing


mod_ssl Apache - Module



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

  • Copy the key material to the configuration 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"
  • Restart Apache and Test
/etc/init.d/httpd stop
/etc/init.d/httpd stop


Documentation / Reference

Discover More
Web Site Certificate
How to enable SSL on a server (ie HTTPS on a web server) ?

This page shows you how to configure a certificate and a private key for a server in order to enable SSL or a web server (http) (ie web site) in order to enable https (ie HTTP over SSL).

Share this page:
Follow us:
Task Runner