From 7f01151b7c271a085e80ab8ce386347ca0e79d9d Mon Sep 17 00:00:00 2001 From: Simon Vandevelde Date: Sun, 2 Feb 2020 21:36:30 +0100 Subject: [PATCH] Short page on adding SSL using Certbot --- Setup-HTTPS-for-EteSync.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Setup-HTTPS-for-EteSync.md diff --git a/Setup-HTTPS-for-EteSync.md b/Setup-HTTPS-for-EteSync.md new file mode 100644 index 0000000..8bced51 --- /dev/null +++ b/Setup-HTTPS-for-EteSync.md @@ -0,0 +1,33 @@ +Setting up SSL for EteSync is a breeze by using [Certbot](https://certbot.eff.org/). + +### Install Certbot +First, make sure your server is reachable by HTTP, and that the HTTPS port (443) is also open. +On your server machine, add the Certbot PPA and install it. (Note: these instructions are for Ubuntu. For other operating systems, visit certbot's site.) + +``` +sudo apt-get update +sudo apt-get install software-properties-common +sudo add-apt-repository universe +sudo add-apt-repository ppa:certbot/certbot +sudo apt-get update + +sudo apt-get install certbot python-certbot-nginx +``` + +### Run Certbot +Next, run the following command to automatically have Certbot edit your Nginx configuration to work with SSL. + +``` +sudo certbot --nginx +``` + +Lastly, confirm that it worked by vising `https://yourdomain.com`. + +### Enjoy EteSync :) +And that's it! +Certbot should have installed everything correctly. +Your SSL certificates should renew automatically after a certain period of time. + + +After adding HTTPS to your server, you're be done. Congrats! +It might be a good idea to close your HTTP port now if you don't use it for anything else. \ No newline at end of file