0% found this document useful (0 votes)
258 views

How To Enable SSL On Raspberry PI Owncloud - AvoidErrors PDF

This tutorial explains how to enable SSL on an Owncloud installation on a Raspberry Pi in 7 steps: 1. Enable the SSL module and create a directory for the self-signed certificate. 2. Generate a self-signed certificate and private key valid for 365 days. 3. Configure the default SSL virtual host file to use the new certificate and key. 4. Activate the SSL virtual host and restart Apache to enable SSL. 5. If prompted, configure the server's fully qualified domain name.

Uploaded by

zymebix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
258 views

How To Enable SSL On Raspberry PI Owncloud - AvoidErrors PDF

This tutorial explains how to enable SSL on an Owncloud installation on a Raspberry Pi in 7 steps: 1. Enable the SSL module and create a directory for the self-signed certificate. 2. Generate a self-signed certificate and private key valid for 365 days. 3. Configure the default SSL virtual host file to use the new certificate and key. 4. Activate the SSL virtual host and restart Apache to enable SSL. 5. If prompted, configure the server's fully qualified domain name.

Uploaded by

zymebix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

How to Enable SSL on Raspberry PI Owncloud - AvoidErrors

  !   " # $ !!

% $ && $!  ' ' &&  (  ()  "


  
  
 Search the site

This tutorial has been verified to work


with Debian 9 Stretch. Any Debian 9
derivatives should also works. Open N
Terminal or connect to Debian 9 via Get weekly
SSH and execute these commands tr
below:

Email
Fix: “You are accessing this site via
HTTP. We strongly suggest you
configure your server to require using
HTTPS instead as described in our
security tips.”
100% Pr
In this post we will learn, how to enable
and configure SSL on ownCloud installation.

 
Step 1: Enable SSL, Open the terminal and run the following command:
Avoid
sudo a2enmod ssl 7,116 lik

Step 2: Create a new directory for the self signed certificate


Like Page

sudo mkdir /etc/apache2/ssl
Be the first of you

https://www.avoiderrors.com/enable-ssl-raspberry-pi-owncloud/
How to Enable SSL on Raspberry PI Owncloud - AvoidErrors

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

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

Note: The above certificate is valid for 365 days. We have mentioned validity days in the
Insta
command.
Ras
Stre
Step 4: Now we need to setup the certificate

Cha
sudo nano /etc/apache2/sites‐available/default‐ssl.conf
BIO

The lines that need changing are the following

ServerName LAN IP :443 Disa


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

Solv
crea
loca

https://www.avoiderrors.com/enable-ssl-raspberry-pi-owncloud/
How to Enable SSL on Raspberry PI Owncloud - AvoidErrors

Once the lines has been modified Exit and save.

Step 5: Activate the new virtual host

sudo a2ensite default‐ssl

Step 6: Restart apache

sudo service apache2 restart

Step 7: If prompted the Apache2 could not reliably determine the server’s fully qualified
domain name:

https://www.avoiderrors.com/enable-ssl-raspberry-pi-owncloud/

You might also like