AvoidErrors
  • HOME
  • WINDOWS
  • APPLE
  • MS OFFICE
  • RASPBERRY PI
  • WORDPRESS
  • TECH TIPS
  • LINUX
  • VIRTUALIZATION
  • FORUM
No Result
View All Result
AvoidErrors
No Result
View All Result

Enable and Configure SSL for ownCloud on Ubuntu for Secure Access

Miguel by Miguel
March 20, 2016 - Updated on March 29, 2022
in Linux
12
Share on FacebookShare on Reddit
Download this tool to Recover Deleted Files and Photos

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.

In this post we will learn, how to enable and configure SSL on Owncloud 8 in Ubuntu 14.04 LTS Server.

If you are looking to enable SSL on your raspberry PI then  Click Here to Enable SSL on Raspberry PI Owncloud

Step 1: Install Owncloud 8 on Ubuntu 14.04 LTS

I have already written a post on “How to install Owncloud on Ubuntu 17.04”.

Step 2: Enable SSL, Open the terminal and run the following command:

sudo a2enmod ssl

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

sudo mkdir /etc/apache2/ssl

Step 4: 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

Note: The above certificate is valid for 365 days. We have mentioned validity days in the command.

Step 5: Now we need to setup the certificate

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

The lines that need changing are the following

ServerName LAN IP :443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/owncloud.crt
SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key

enable-SSL-Raspberry-PI

Once the lines has been modified Exit and save.

Step 6: Activate the new virtual host

sudo a2ensite default-ssl

Step 7: Restart apache

sudo service apache2 restart

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

echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf

Video Tutorial:

Previous Post

4 Reasons why Oracle VirtualBox is Best for Hosting ownCloud

Next Post

How to Upload ISO Files to Datastore in vSphere ESXi 6

Miguel

Miguel

I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

Related Posts

Install ownCloud on Ubuntu 20.04 LTS DigitalOcean
Linux

Install ownCloud on Ubuntu 20.04 LTS DigitalOcean

by Miguel
June 21, 2022 - Updated on June 22, 2022
Completely Remove Windows 11 and Install Ubuntu
Linux

Completely Remove Windows 11 and Install Ubuntu

by Miguel
April 8, 2022

Comments 12

  1. Hagos says:
    6 years ago

    Hey this was a fantastic tutorial. I was able to flow it with ease.

    I do however have one question,
    my connection states still being insecure even after adding the exception: The “Strict-Transport-Security” HTTP header is not configured to at least “15552000” seconds. For enhanced security we recommend enabling HSTS as described in our security tips.

    Any idea what I need to do?

    • Miguel says:
      6 years ago

      yes now in the address bar type https:// in stead of http://

  2. sadekur rahman says:
    5 years ago

    i do this bt its can’t working
    what can i do now

  3. Laurean says:
    5 years ago

    Great!!! Worked like a charm! Thank you!

  4. ksy says:
    5 years ago

    Hi!
    Why doesn’t your browser show a warning that the certificate is self signed?

    • Miguel says:
      5 years ago

      it doesnt. but that doesnt mean is not enabled

  5. Cyrix says:
    5 years ago

    Hi, what is the ServerName to put into default-ssl.conf? I tried the IP address with :443 of my Raspi but it resulted in Apache2 not able to restart. Also “LAN IP :443” did not work.

    HELP

    • Miguel says:
      5 years ago

      Raspi IP address plus :443 no spaces

  6. Frank says:
    5 years ago

    Hi Miguel,
    When I follow to step 5 command, the result default-ssl conf show “empty conf”, i.e. without any text inside. Could you please advise how to resolve it or reinstall that conf?

    Appreciate so much for your help

    • Miguel says:
      5 years ago

      Look carefully at the copied command, there is probably a space somewhere. Or write the command in stead of copying it.

  7. Pedro says:
    4 years ago

    Hi Miguel, you make awesome tutorials.

    Still I have a problem with SSL, the web says connection is not safe, although antivirus triggers (eset) and I allow the connection, it still doesn’t say it is a safe connection. I have checked portforwarding and rebooted rasperry and router, still is not safe.

    How could I check if the ssl certificate is valid with another method?

    • Miguel says:
      4 years ago

      https://www.sslshopper.com/ssl-checker.html

Subscribe to get weekly tutorials direct to your inbox!

Disable Windows Defender SmartScreen – Windows 11
Windows

Fix Windows 11 Defender Not Working

by Rhousse
January 24, 2023
How to Fix 503 Service Unavailable Error in Windows 10 
Windows

Fix HTTP Error 503: The Service is Unavailable in Windows 11

by Rhousse
January 24, 2023
How to Modify Mouse Pointer in Windows 10
Windows

How to Fix Black Screen With Cursor in Windows 11

by Rhousse
January 24, 2023
Restore the Old Windows Desktop Icons – Windows 11
Windows

Fix and Enable Drag and Drop on Windows 11

by Rhousse
January 24, 2023




  • Disclaimer & Privacy Policy
  • FAQ
© 2022 Powered by Cloudways
No Result
View All Result
  • HOME
  • WINDOWS
  • APPLE
  • MS OFFICE
  • RASPBERRY PI
  • WORDPRESS
  • TECH TIPS
  • LINUX
  • VIRTUALIZATION
  • FORUM

© 2022 AvoidErrors Powered by Cloudways | Privacy

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.