background preloader

Modules

Facebook Twitter

Setup SSL on Ubuntu Apache2 Server. Setting up SSL with Ubuntu 8.10 is a simple process but it does have a few gotchas that you need to be aware of.

Setup SSL on Ubuntu Apache2 Server

The setup has changed from 8.04. One issue is that the +CompatEnvVars is no longer used as it created a bug in 8.10 and you will have to enable the default-ssl site to get everything working. First, log on to your server Install Apache: sudo apt-get install apache2 Change to the /etc/apache2/mods-available directory and look at the available modules. Cd /etc/apache2/mods-available ls cd /etc/apache2/mods-enabled ls Now, install and enable SSL: sudo a2enmod ssl sudo /etc/init.d/apache2 force-reload Change to the default webserver directory, and create a simple web page: cd /var/www sudo vim index.html Add the following content: <html> <head> <title>Welcome to Your_Name’s Web Site</title> </head> <body> <p>This is the best web site in the whole wide world.

Save and exit. You should be able to view your web page. Cd /etc/apache2 sudo openssl genrsa -des3 -out server.key 1024. Related, SSL/TLS. How to install SSL onto Apache using ssl.conf - QuoVadis Customer Support. Problem How do I install an SSL Certificate into Apache using the httpd.conf?

How to install SSL onto Apache using ssl.conf - QuoVadis Customer Support

Resolution Sometimes to reduce the httpd.conf file in size and content, some administrators include the SSL virtualhosts in a seperate file. This separate file is called the ssl.conf file (or ssl-httpd.conf). The guide belows shows you how to configure this file. Locate your ssl.conf file and open it using a simple text editor (such as notepad). Note: the "conf/extra" might change depending on if the ssl.conf file is in a different location. Save the httpd.conf file. OCSP Stapling Support Although optional, it is highly recommended to enable OCSP Stapling which will improve the SSL handshake speed of your website. In order to enabled it, you must include the following lines in your configuration file: SSLUseStapling On SSLStaplingCache shmcb:/path/to/datafile[(size)] Note: The SSLStaplingCache is mandatory for OCSP Stapling to work. Module Index. Below is a list of all of the modules that come as part of the Apache HTTP Server distribution.

Module Index

See also the complete alphabetical list of all Apache HTTP Server directives. Core Features and Multi-Processing Modules core Core Apache HTTP Server features that are always available mpm_common. Windows - openssl error in reading openssl.conf file. Apache2 SSL in Ubuntu - LinodeWiki. How To Set Up An SSL Vhost Under Apache2 On Ubuntu 9.10/Debian Lenny. Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Follow me on Twitter Last edited 01/18/2010 This article explains how you can set up an SSL vhost under Apache2 on Ubuntu 9.10 and Debian Lenny so that you can access the vhost over HTTPS (port 443).

How To Set Up An SSL Vhost Under Apache2 On Ubuntu 9.10/Debian Lenny

SSL is short for Secure Sockets Layer and is a cryptographic protocol that provides security for communications over networks by encrypting segments of network connections at the transport layer end-to-end. We use the mod_ssl Apache module here to provide strong cryptography for Apache2 via SSL by the help of the Open Source SSL toolkit OpenSSL. This document comes without warranty of any kind! 1 Preliminary Note I'm assuming that you have a working LAMP setup on your Ubuntu 9.10 or Debian Lenny box, as shown in these tutorials: I will set up SSL for my vhost www.hostmauritius.com in this tutorial - hostmauritius.com is a domain that I own - replace it with your own domain. Sudo su to become the root user. 2 Enabling mod_ssl.