


Navigate to the Admin page and enable the “Enforce HTTPS” option. Notice “/owncloud” is not requried in the URL because of the Document Root entry in the conf we added to apache. Next we enable the new conf file: a2enconf nf Header always set Strict-Transport-Security "max-age=15768000 includeSubDomains preload" SSLCertificateKeyFile /etc/ssl/private/my-private-key.key The mod_headers is an best practices entry from owncloud for a more secure server. The virtual host 443 is setup with the certificates specified. This will forward requests from port http port 80 to https port 443 ensuring all communication is encrypted. Now that the CA is trusted, enable the needed apache plugins: a2enmod rewrite & a2enmod headers & a2enmod sslĬreate an apache virtual host: nano /etc/apache2/conf-available/nfĪdd the following to the new file. Note: For some installations, you need to use “sudo dpkg-reconfigure ca-certificates” instead which calls update-ca-certificates This command will read in the Root-CA Cert and add it to the trusted list for this server. You should have a public cert, private key, and a root-CA from the issuing Authority.Ĭopy your public cert PEM file into /etc/ssl/certs/my-public-cert.pemĬopy your private key file into /etc/ssl/private/my-private-key.keyĬopy your CertAuth-Rootca.crt file into /usr/local/share/ca-certificates Since we are using certs, you need openssl modules if you don’t already have it installed. /t/enable-and-configure-ssl-for-owncloud-ubuntu-18-04-lts/20114 Hey I’m having trouble with HTTPS bit when I search on the web with, it says This site does not offer secure connections nothing else. If you plan on using WebDAV with IOS, I have found that a cert from a known authority works where a self signed certs cause issues. To start, you need to have a cert issued from a known authority or you create a self signed cert. I have added this here for easy reference. There are lots of tutorials available for this. Since owncloud runs on top of apache2, enabling https is pretty easy. Even if it is internal only, enforcing https is a good idea. If you are running owncloud and have it facing the public internet, you should really be enforcing https communication. To use port 443, you have to add in front of the URL and accept the self-signed certificate. The port 80 button will work out of the box. They are links to your ownCloud login page. Afterwards, you have to go to the admin > general section. Change the E-Mail of your user to receive mails from your ownCloud. At the top of the play-with-docker interface you can now see two buttons, for port 80 and 443. First you have to enter your own E-Mail address in personal > general. This document can be used for Owncloud Ver 8 and Ubuntu Server 14.04. /news/how-to-set-up-an-owncloud-in-3-minutes/Ğxecute the command and your ownCloud server is running.
