Installing SSL: Apache 2.x

In the following instructions, you will learn how to install an SSL certificate on an Apache web server version 2.x. 

The prerequisite is that the Apache web server is already installed with SSL support. 
The certificate and the private key are already present on the server. 

SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourdomain.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/deinedomain.ca-bundle

 

Step 1

Log in to your web server and open the configuration file with any editor (e.g. Notepad++, Sublime Text2) of your choice.

Fedora/CentOS/RHEL: /etc/httpd/conf/httpd.conf
Debian and Debian based: /etc/apache2/apache2.conf

Step 2

Locate the VirtualHost configuration section that you want to secure using SSL and add the following configuration.

SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/server.key
SSLCertificateFile /etc/ssl/ssl.crt/yourdomain.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/yourdomain.ca-bundle

Then save the configuration and close the editor.

Step 3

Now test the configuration with the tool apache2ctl configtest.

If the output is error-free: Syntax OK, restart the web server service apache2ctl restart.

Was this article helpful?

Thank you very much for your review!

Thank you very much for your review!

You have already rated this item.

Thank you for your time.

Do you require assistance?

Support

Telephone support

Domains worldwide

Europe

  • .at
  • .ch
  • .de
  • .eu
  • .fr
  • .it
  • .nl
  • .uk
  • .es
  • .pl
  • .me
  • .li

Asia

  • .ae
  • .cn
  • .hk
  • .in
  • .io
  • .jp
  • .my
  • .la
  • .sg
  • .tw
  • .ps

Generic

  • .biz
  • .com
  • .info
  • .mobi
  • .net
  • .org
  • .travel
  • .xxx
  • .pro
  • .jobs
  • .name
  • .aero

New domain extensions

  • .online
  • .sale
  • .reise
  • .hotel
  • .xyz
  • .ruhr
  • .restaurant
  • .coupon
  • .video
  • .bayern
  • .berlin
  • .hamburg
  • .koeln
  • .london
  • .reisen
  • .saarland
  • .wien
  • .bio
  • .business
  • .events
  • .haus
  • .immo
  • .immobilien
  • .international
  • .versicherung

Companies that trust us

Other products you might be interested in

Webhosting
Concentrate fully on your project! Performance and security included.
Rankingoach
Optimize your Web site and achieve top rankings.
Website optimization
SSL Certificates
For your site, more safety protect yourself from hacker attacks.
Quickly protect