Ubuntu – ownCloud Secure Access with SSL

In this video we’ll go through and configure OpenSSL for secure owncloud access.

Part 1 – Updated how to install ownCloud 7 onto Ubuntu 14.04.1 LTS Server

Commands used in video:

Enable ssl

sudo a2enmod ssl

Create new directory for the self signed certificate

sudo mkdir /etc/apache2/ssl

Create the self signed certificate and the server key that protects it, and placing both of them into the new directory

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/owncloud.key -out /etc/apache2/ssl/owncloud.crt

Now we setup the certificate

sudo nano /etc/apache2/sites-available/default-ssl.conf

The lines that need changing are the following

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/owncloud.crt
SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key

Activate the new vhost

sudo a2ensite default-ssl

Restart apache

sudo service apache2 restart